Issue installing Mongrel from Gems...

J

Jose Sierra

So I'm trying to install Mongrel (I'm running Fedora 8) by using gems...
and here's what I get:

[js@localhost ~]$ sudo gem install mongrel
Password:
Select which gem to install for your platform (i386-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
Install required dependency fastthread? [Yn] Y
Select which gem to install for your platform (i386-linux)
1. fastthread 1.0.1 (mswin32)
2. fastthread 1.0.1 (i386-mswin32)
3. fastthread 1.0.1 (ruby)
4. Skip this gem
5. Cancel installation
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install mongrel
can't find header files for ruby.


Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1 for inspection.
Results logged to
/usr/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext/fastthread/gem_make.out


I don't even know what the heck to do at this point. I also get a
strange error from Netbeans that says that my "Gem directory is not
writable as this user. Either install your gems elsewhere by setting
$GEM_HOME to an alternative (and writable) directory before launching
Netbeans, or run as root, or manually change the gem directory file
permissions, or build your own Ruby installation with user permissions."

Any help would be fantastic. I've been developing a project on a
Windows machine, and I'm trying to continue development on my Linux box
(should be a simple process, right?) I can't believe I'm saying this,
but using a Linux box has been significantly more hassle to get rolling
right.

Thanks ahead of time! :)
 
A

Arlen Cuss

[Note: parts of this message were removed to make it a legal post.]

Hey,

Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.

ruby extconf.rb install mongrel
can't find header files for ruby.
The devil's in the details; "can't find header files for ruby". Try
installing the ruby-dev package for your system?

Arlen
 
J

Jose Sierra

Arlen said:
The devil's in the details; "can't find header files for ruby". Try
installing the ruby-dev package for your system?

Arlen

Heh. Wow do I feel silly. The devil indeed... I need to stop drinking
so much coffee...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,968
Messages
2,570,152
Members
46,698
Latest member
LydiaHalle

Latest Threads

Top