You need to install the libc6-dev package.
On debian-based systems that's "sudo apt-get install libc6-dev"
Main Topics
Browse All Topicsdallasray@justis:~$ sudo gem install mongrel mongrel_rails
Select which gem to install for your platform (i486-linux)
1. mongrel 1.1.3 (java)
2. mongrel 1.1.3 (i386-mswin32)
3. mongrel 1.1.3 (ruby)
4. mongrel 1.1.2 (ruby)
5. mongrel 1.1.2 (mswin32)
6. mongrel 1.1.2 (java)
7. Skip this gem
8. Cancel installation
> 4
Install required dependency fastthread? [Yn] y
Select which gem to install for your platform (i486-linux)
1. fastthread 1.0.1 (mswin32)
2. fastthread 1.0.1 (ruby)
3. Skip this gem
4. Cancel installation
> 2
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::Extension
ERROR: Failed to build gem native extension.
ruby extconf.rb install mongrel mongrel_rails
extconf.rb:1:in `require': no such file to load -- mkmf (LoadError)
from extconf.rb:1
Gem files will remain installed in /var/lib/gems/1.8/gems/fas
Results logged to /var/lib/gems/1.8/gems/fas
dallasray@justis:~$
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: smetterdPosted on 2008-02-11 at 09:29:33ID: 20868207
I got past that error by doing a sudo apt-get install ruby1.8-dev package. But now I get this
BuildError )
inux -I/usr/lib/ruby/1.8/i486-l inux -I. -fPIC -fno-strict-aliasing -g -O2 -fPIC -c fastthread.c ux/ruby.h: 40:21: error: stdlib.h: No such file or directory ux/ruby.h: 44:21: error: string.h: No such file or directory ux/ruby.h: 54:19: error: stdio.h: No such file or directory ux/ruby.h: 71:20: error: alloca.h: No such file or directory u/4.1.3/in clude/sysl imits.h:7, u/4.1.3/in clude/limi ts.h:11, ux/ruby.h: 91, u/4.1.3/in clude/limi ts.h:122:6 1: error: limits.h: No such file or directory ux/ruby.h: 718, ux/missing .h:16:24: error: sys/time.h: No such file or directory ux/missing .h:25:25: error: sys/types.h: No such file or directory ux/ruby.h: 719, ux/intern. h:218: error: expected declaration specifiers or ... before fd_set ux/intern. h:218: error: expected declaration specifiers or ... before fd_set ux/intern. h:218: error: expected declaration specifiers or ... before fd_set ux/intern. h:218: warning: struct timeval declared inside parameter list ux/intern. h:218: warning: its scope is only this definition or declaration, which is probably not what you want ux/intern. h:219: warning: struct timeval declared inside parameter list ux/intern. h:453: warning: parameter names (without types) in function declaration ux/ruby.h: 728:21: error: pthread.h: No such file or directory ux/ruby.h: 730: error: expected =, ,, ;, asm or __attribute__ before rb_nativethread_t ux/intern. h:218: error: expected declaration specifiers or ... before fd_set ux/intern. h:218: error: expected declaration specifiers or ... before fd_set ux/intern. h:218: error: expected declaration specifiers or ... before fd_set ux/intern. h:218: warning: struct timeval declared inside parameter list ux/intern. h:218: error: conflicting types for rb_thread_select ux/intern. h:218: error: previous declaration of rb_thread_select was here ux/intern. h:219: warning: struct timeval declared inside parameter list ux/intern. h:219: error: conflicting types for rb_thread_wait_for ux/intern. h:219: error: previous declaration of rb_thread_wait_for was here ux/intern. h:453: warning: parameter names (without types) in function declaration ux/rubysig .h:15:19: error: errno.h: No such file or directory
tthread-1. 0.1 for inspection. tthread-1. 0.1/ext/fa stthread/g em_make.ou t
-------
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::Extension
ERROR: Failed to build gem native extension.
ruby extconf.rb install mongrel
creating Makefile
make
cc -I. -I/usr/lib/ruby/1.8/i486-l
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
In file included from /usr/lib/gcc/i486-linux-gn
from /usr/lib/gcc/i486-linux-gn
from /usr/lib/ruby/1.8/i486-lin
from fastthread.c:12:
/usr/lib/gcc/i486-linux-gn
In file included from /usr/lib/ruby/1.8/i486-lin
from fastthread.c:12:
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
In file included from /usr/lib/ruby/1.8/i486-lin
from fastthread.c:12:
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-lin
In file included from fastthread.c:12:
/usr/lib/ruby/1.8/i486-lin
In file included from fastthread.c:13:
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
/usr/lib/ruby/1.8/i486-lin
In file included from fastthread.c:14:
/usr/lib/ruby/1.8/i486-lin
fastthread.c: In function wait_condvar:
fastthread.c:626: warning: passing argument 1 of rb_ensure from incompatible pointer type
make: *** [fastthread.o] Error 1
Gem files will remain installed in /var/lib/gems/1.8/gems/fas
Results logged to /var/lib/gems/1.8/gems/fas
dallasray@justis:~$