Rails install problem?

I just installed ruby on my CentOS 4.4 system, using yum:

sauron.deepsoft.com% rpm -qa | grep ruby
ruby-devel-1.8.1-7.EL4.6
ruby-mode-1.8.1-7.EL4.6
ruby-libs-1.8.1-7.EL4.6
ruby-tcltk-1.8.1-7.EL4.6
ruby-docs-1.8.1-7.EL4.6
ruby-1.8.1-7.EL4.6

I then install RubyGems 0.9.0, which went OK (no error messages).

I then used gem to install rails and got this:

auron.deepsoft.com% sudo gem install rails --include-dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rails-1.1.6
Successfully installed rake-0.7.1
Successfully installed activesupport-1.3.1
Successfully installed activerecord-1.14.4
Successfully installed actionpack-1.12.5
Successfully installed actionmailer-1.2.5
Successfully installed actionwebservice-1.1.6
/usr/lib/site_ruby/1.8/rubygems/custom_require.rb:35:in require': No such file to load -- irb/slex (LoadError) from /usr/lib/site_ruby/1.8/rubygems/doc_manager.rb:71:in load_rdoc’
from /usr/lib/site_ruby/1.8/rubygems/doc_manager.rb:41:in
generate_ri' from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:283:in execute’
from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:282:in
each' from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:282:in execute’
from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:220:in
each' from /usr/lib/site_ruby/1.8/rubygems/gem_commands.rb:220:in execute’
from /usr/lib/site_ruby/1.8/rubygems/command.rb:69:in invoke' from /usr/lib/site_ruby/1.8/rubygems/cmd_manager.rb:117:in process_args’
from /usr/lib/site_ruby/1.8/rubygems/cmd_manager.rb:88:in run' from /usr/lib/site_ruby/1.8/rubygems/gem_runner.rb:29:in run’
from /usr/bin/gem:23

Is this a problem? If so, what is the cure?

Robert Heller wrote:

I then install RubyGems 0.9.0, which went OK (no error messages).

I then used gem to install rails and got this:

I hit this too. The ri/rdoc are separate rpms for CentOS. Use yum to
install rdoc.

-Nate

ran into the same problem with ubuntu… had to do

aptitude install ri rdoc irb

to get all those bits

Tim

Be who you are and say what you feel, because those who mind don’t
matter and those who matter don’t mind.

  • Dr. Seuss

At Wed, 1 Nov 2006 08:53:04 +0900 Nate W. [email protected] wrote:

ruby-1.8.1-7.EL4.6

I then install RubyGems 0.9.0, which went OK (no error messages).

I then used gem to install rails and got this:

I hit this too. The ri/rdoc are separate rpms for CentOS. Use yum to
install rdoc.

OK, I installed irb (I could not find any RPMs relating to ‘rdoc’). Now
it does this:

sharky.deepsoft.com% sudo gem install rails --include-dependencies
Bulk updating Gem source index for: http://gems.rubyforge.org
Successfully installed rails-1.1.6
Successfully installed rake-0.7.1
Successfully installed activesupport-1.3.1
Successfully installed activerecord-1.14.4
Successfully installed actionpack-1.12.5
Successfully installed actionmailer-1.2.5
Successfully installed actionwebservice-1.1.6
Installing ri documentation for rake-0.7.1…

lib/rake.rb:905:18: unexpected token: ‘#<RubyToken::TkLPAREN:0x41fdce5c
@text=“(”, @char_no=7, @line_no=905>’
Installing ri documentation for activesupport-1.3.1…
Installing ri documentation for activerecord-1.14.4…
Installing ri documentation for actionpack-1.12.5…

lib/action_controller/code_generation.rb:77:31: unexpected token:
‘#<RubyToken::TkLPAREN:0x4204fe34 @text=“(”, @char_no=19, @line_no=77>’

lib/action_controller/code_generation.rb:168:31: unexpected token:
‘#<RubyToken::TkLPAREN:0x41f1b694 @text=“(”, @char_no=19, @line_no=168>’
Installing ri documentation for actionmailer-1.2.5…
Installing ri documentation for actionwebservice-1.1.6…
Installing RDoc documentation for rake-0.7.1…

lib/rake.rb:905:18: unexpected token: ‘#<RubyToken::TkLPAREN:0x41bcc510
@text=“(”, @char_no=7, @line_no=905>’
Installing RDoc documentation for activesupport-1.3.1…
Installing RDoc documentation for activerecord-1.14.4…
ERROR: While executing gem … (NoMethodError)
undefined method `find_module_named’ for nil:NilClass