Another rubygem install problem

I’m trying to install a fresh copy of Ruby into empty directory
‘/modlest/modlusr/ruby’ on a stock Red Hat server but it doesn’t work.
Here’s what I’ve done:

/modlest/users/erik/rubygems-1.3.3> cat /proc/version
–>Linux version 2.6.9-67.0.20.ELsmp
([email protected]) (gcc version 3.4.6 20060404
(Red Hat 3.4.6-9)) #1 SMP Wed Jun 18 12:35:02 EDT 2008

/modlest/users/erik/ruby-1.8.7-p174>./configure
–prefix=/modlest/modlusr/ruby
–>everything went fine

/modlest/users/erik/ruby-1.8.7-p174>make
–>everything went fine

/modlest/users/erik/ruby-1.8.7-p174> make install
–>everything went fine

/modlest/users/erik/ruby-1.8.7-p174> which ruby
–>/modlest/modlusr/ruby/bin/ruby

/modlest/users/erik/rubygems-1.3.3> echo $GEM_HOME
–>/modlest/modlusr/ruby/gems

/modlest/users/erik/rubygems-1.3.3> ruby setup.rb
–prefix=/modlest/modlusr/ruby
–>all seems to go okay

/modlest/users/erik/rubygems-1.3.3> which gem
–>/modlest/modlusr/ruby/bin/gem

/modlest/users/erik/rubygems-1.3.3> gem
–>/modlest/modlusr/ruby/bin/gem:8:in `require’: no such file to load
– rubygems (LoadError)
–> from /modlest/modlusr/ruby/bin/gem:8

This is driving me nuts, and any assistance would be greatly
appreciated.

On Nov 13, 5:48 pm, Erik N. [email protected]
wrote:

–>/modlest/modlusr/ruby/gems

/modlest/users/erik/rubygems-1.3.3> ruby setup.rb
–prefix=/modlest/modlusr/ruby
–>all seems to go okay

You shouldn’t be prefix’ing RubyGems installation, it should detect
Ruby installation options and use them.

Can you create a pastie of the actual output where rubygems.rb is
being copied?

(you didn’t include that, which could be a hint of what is going on)

/modlest/users/erik/rubygems-1.3.3> gem
–>/modlest/modlusr/ruby/bin/gem:8:in `require’: no such file to load
– rubygems (LoadError)
–> from /modlest/modlusr/ruby/bin/gem:8

This is driving me nuts, and any assistance would be greatly
appreciated.

Maybe an issue with environment? Could you try to define an EXPORT for
gem
on your shell profile?

iñ

Luis L. wrote:

On Nov 13, 5:48�pm, Erik N. [email protected]
wrote:

� �–>/modlest/modlusr/ruby/gems

/modlest/users/erik/rubygems-1.3.3> ruby setup.rb
–prefix=/modlest/modlusr/ruby
� �–>all seems to go okay

You shouldn’t be prefix’ing RubyGems installation, it should detect
Ruby installation options and use them.

Can you create a pastie of the actual output where rubygems.rb is
being copied?

(you didn’t include that, which could be a hint of what is going on)

I did a reinstall, this time not including the prefix=, and that fixed
it. Many thanks!