Another rubygem install problem

E

Erik Nelson

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.
 
L

Luis Lavena

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/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

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)
 
E

Erik Nelson

Luis said:
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!
 

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,773
Messages
2,569,594
Members
45,120
Latest member
ShelaWalli
Top