[mongrel] [fedora5] install error " can't find ruby libs"


#1

Installed Fedora5.
Installed Ruby 1.8.4.
Installed rubygems.
Installed rails.
Created test app to verify that ruby and rails were working.

When I attempted to install mongrel via:
sudo gem install mongrel

I get this error:

Install required dependency daemons? [Yn] y
Install required dependency gem_plugin? [Yn] y
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/mongrel-
0.3.11 for inspection.
ruby extconf.rb install mongrel\n

How should I resolve this?
-Larry


Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson


#2

sudo yum install ruby-devel

sudo gem install mongrel

That shoud do the trick :slight_smile:


#3

Thanks,
ruby-devel intalled.
But mongrel couldn’t find rdoc. It runs, just no docs. Here is the
error
message. I thought rdoc was include in ruby. Anyways, here is the
error
message.

/usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:in require__': no such file to load -- rdoc/rdoc (LoadError) from /usr/lib/site_ruby/1.8/rubygems/custom_require.rb:21:inrequire’
from /usr/lib/site_ruby/1.8/rubygems/doc_manager.rb:43:in
generate_rdoc' from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:215:inexecute’
from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:214:in
execute' from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:153:inexecute’
from /usr/lib/site_ruby/1.8/rubygems/command.rb:49:in invoke' from /usr/lib/site_ruby/1.8/rubygems/cmd_manager.rb:94:inprocess_args’ from
/usr/lib/site_ruby/1.8/rubygems/cmd_manager.rb:67:in run' from /usr/lib/site_ruby/1.8/rubygems/gem_runner.rb:13:inrun’
from /usr/bin/gem:17

On 3/23/06, Łukasz Piestrzeniewicz removed_email_address@domain.invalid wrote:

Installed rails.
can’t find header files for ruby.

http://lists.rubyonrails.org/mailman/listinfo/rails


Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson


#4

Thanks, that did the trick.
-Larry

On 3/23/06, Chris S. removed_email_address@domain.invalid wrote:

yum install rdoc


Rails mailing list
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson


#5

Would people find it helpful to have a set of “platform specific
blockers/solutions” document for things like this? Debian has similar
niggling little things like this.

Thoughts on what would be required?

Zed A. Shaw


#6

I’m not sure what you mean by ‘blockers/solutions’, but I would be nice
to
have an easy to find installation guide that would cover specifics on
various platforms. Is this something that should be put into the wiki?
-Larry

On 3/23/06, Zed S. removed_email_address@domain.invalid wrote:

Nope.
removed_email_address@domain.invalid
http://lists.rubyonrails.org/mailman/listinfo/rails


Best Regards,
-Larry
“Work, work, work…there is no satisfactory alternative.”
— E.Taft Benson


#7

Larry K. wrote:

Thanks,
ruby-devel intalled.
But mongrel couldn’t find rdoc. It runs, just no docs. Here is the error
message. I thought rdoc was include in ruby.

Nope.

yum install rdoc