# Cannot instal gettext 1.2.0 gem

**URL:** <https://www.ruby-forum.com/t/cannot-instal-gettext-1-2-0-gem/74904>\
**Category:** Ruby\
**Created:** [February 28, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/cannot-instal-gettext-1-2-0-gem/74904 "2006-02-28T20:22:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![byrnejb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/d2c977/32.png) [@byrnejb](https://www.ruby-forum.com/u/byrnejb)\
**Post date:** [February 28, 2006, 8:22pm UTC](https://www.ruby-forum.com/t/cannot-instal-gettext-1-2-0-gem/74904/1 "2006-02-28T20:22:51Z")

</div>

OS = CentOS4.2  
Ruby = 1.8.4  
Gem = 0.8.11

When attempting to install gettext I get the following error:

# gem install gettext

Attempting local installation of ‘gettext’  
Local gem file not found: gettext\*.gem  
Attempting remote installation of ‘gettext’  
Select which gem to install for your platform (i386-linux)

1. gettext 1.2.0 (ruby)
2. gettext 1.2.0 (mswin32)
3. gettext 1.1.1 (mswin32)
4. gettext 1.1.1 (ruby)
5. gettext 1.1.0 (mswin32)
6. gettext 1.1.0 (ruby)
7. gettext 1.0.0 (mswin32)
8. gettext 1.0.0 (ruby)
9. Cancel installation

> 1  
> Building native extensions. This could take a while…  
> can’t find header files for ruby.  
> ERROR: While executing gem … (RuntimeError)  
> ERROR: Failed to build gem native extension.  
> Gem files will remain installed in  
> /usr/lib/ruby/gems/1.8/gems/gettext-1.2.0 for inspection.  
> ruby extconf.rb install gettext\n

Results logged to  
/usr/lib/ruby/gems/1.8/gems/gettext-1.2.0/ext/gettext/gem\_make.out

# cat /usr/lib/ruby/gems/1.8/gems/gettext-1.2.0/ext/gettext/gem\_make.out

ruby extconf.rb install gettext

What am I doing wrong?

Jim
