# ERROR: Error installing mongrel:

**URL:** <https://www.ruby-forum.com/t/error-error-installing-mongrel/170847>\
**Category:** Mongrel\
**Created:** [June 23, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/error-error-installing-mongrel/170847 "2009-06-23T14:54:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ritesh008](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@ritesh008](https://www.ruby-forum.com/u/ritesh008)\
**Post date:** [June 23, 2009, 2:54pm UTC](https://www.ruby-forum.com/t/error-error-installing-mongrel/170847/1 "2009-06-23T14:54:48Z")

</div>

Hi,

I am getting some problem while installing mongrel on GoDaddy(fedora)  
server.

Env is ::

[root@ip-97-74-86-181 bin]# gem environment  
RubyGems Environment:

- RUBYGEMS VERSION: 1.3.4
- RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [i386-linux]
- INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
- RUBY EXECUTABLE: /usr/bin/ruby
- EXECUTABLE DIRECTORY: /usr/bin
- RUBYGEMS PLATFORMS:
  - ruby
  - x86-linux

- GEM PATHS:
  - /usr/lib/ruby/gems/1.8
  - /root/.gem/ruby/1.8

- GEM CONFIGURATION:
  - :update\_sources =\> true
  - :verbose =\> true
  - :benchmark =\> false
  - :backtrace =\> false
  - :bulk\_threshold =\> 1000

- REMOTE SOURCES:
  - [http://gems.rubyforge.org/](http://gems.rubyforge.org/)

While installing mongrel i am getting ::

[root@ip-97-74-86-181 bin]# gem install mongrel  
Building native extensions. This could take a while…  
ERROR: Error installing mongrel:  
ERROR: Failed to build gem native extension.

/usr/bin/ruby extconf.rb  
can’t find header files for ruby.

Gem files will remain installed in  
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.  
Results logged to  
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem\_make.out  
[root@ip-97-74-86-181 bin]#

And the gems list is::

[root@ip-97-74-86-181 bin]# gem list --local

\*\*\* LOCAL GEMS \*\*\*

actionmailer (2.3.2)  
actionpack (2.3.2)  
activemerchant (1.4.2)  
activerecord (2.3.2)  
activerecord-jdbc-adapter (0.9.1)  
activerecord-jdbcmysql-adapter (0.9.1)  
activeresource (2.3.2)  
activesupport (2.3.2)  
builder (2.1.2)  
calendar\_date\_select (1.15)  
cgi\_multipart\_eof\_fix (2.5.0)  
daemons (1.0.10)  
gem\_plugin (0.2.3)  
google-geocode (1.2.1)  
hoe (2.2.0)  
jdbc-mysql (5.0.4)  
money (2.1.3)  
rails (2.3.2)  
rake (0.8.7)  
rc-rest (2.2.1)  
rubyforge (1.0.3)  
rubygems-update (1.3.4)  
sources (0.0.1)  
ZenTest (4.1.1)

Please let me know where i am wrong. Thanks in advance.

Thanks

Ritesh PAreek

---

<div class="post-metadata">

**Author:** ![ritesh008](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/848f3c/32.png) [@ritesh008](https://www.ruby-forum.com/u/ritesh008)\
**Post date:** [June 29, 2009, 8:52am UTC](https://www.ruby-forum.com/t/error-error-installing-mongrel/170847/2 "2009-06-29T08:52:04Z")

</div>

Ritesh Pareek wrote:

> Hi,
> 
> I am getting some problem while installing mongrel on GoDaddy(fedora)  
> server.
> 
> Env is ::
> 
> [root@ip-97-74-86-181 bin]# gem environment  
> RubyGems Environment:
> 
> - RUBYGEMS VERSION: 1.3.4
> - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [i386-linux]
> - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
> - RUBY EXECUTABLE: /usr/bin/ruby
> - EXECUTABLE DIRECTORY: /usr/bin
> - RUBYGEMS PLATFORMS:
> - ruby
> - x86-linux
> 
> - GEM PATHS:
> - /usr/lib/ruby/gems/1.8
> - /root/.gem/ruby/1.8
> 
> - GEM CONFIGURATION:
> - :update\_sources =\> true
> - :verbose =\> true
> - :benchmark =\> false
> - :backtrace =\> false
> - :bulk\_threshold =\> 1000
> 
> - REMOTE SOURCES:
> - [http://gems.rubyforge.org/](http://gems.rubyforge.org/)
> 
> While installing mongrel i am getting ::
> 
> [root@ip-97-74-86-181 bin]# gem install mongrel  
> Building native extensions. This could take a while…  
> ERROR: Error installing mongrel:  
> ERROR: Failed to build gem native extension.
> 
> /usr/bin/ruby extconf.rb  
> can’t find header files for ruby.
> 
> Gem files will remain installed in  
> /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7 for inspection.  
> Results logged to  
> /usr/lib/ruby/gems/1.8/gems/fastthread-1.0.7/ext/fastthread/gem\_make.out  
> [root@ip-97-74-86-181 bin]#

> Please let me know where i am wrong. Thanks in advance.

> Thanks

> Ritesh PAreek

Hi,

How do you install the ruby in your server, is it by using yum or from  
the source. If it is from yum, then install this package too,  
ruby-devel. The ruby you installed is without header files. To install  
the header files you have to install the above said package.

Rgds  
TML
