Newbie confusion

Hi

Sorry if wrong forum but im a bit lost. I seem to have multiple ruby
installs and gem commands dont work how i expect.

ruby -v

ruby 1.9.3p374 (2013-01-15) [i686-linux]

/opt/ruby/bin/ruby -v

ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-linux]

/opt/ruby-enterprise-1.8.7-2012.01/bin/ruby -v

ruby 1.8.7 (2011-12-28 MBARI 8/0x8770 on patchlevel 357) [i686-linux],
MBARI 0x8770, Ruby Enterprise Edition 2012.01

grep ruby /etc/httpd/conf/httpd.conf

LoadModule passenger_module
/opt/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /opt/ruby/bin/ruby

How do i uninstall the unused ones - i am assuming those are enterprise
and 1.9.3?

When i run gem commands, unless i use full path it doesnt work…

gem -v

/usr/bin/ruby: No such file or directory – ‘–prefix=/usr’ (LoadError)

/opt/ruby-enterprise-1.8.7-2012.01/bin/gem -v

1.8.15

/opt/ruby/bin/gem -v

/usr/bin/ruby: No such file or directory – ‘–prefix=/usr’ (LoadError)

So i guess that a path is wrong somewhere? How do rectify this?

Many thanks
JB

On Thu, Oct 3, 2013 at 9:59 AM, John B. [email protected] wrote:

Sorry if wrong forum but im a bit lost. I seem to have multiple ruby
installs and gem commands dont work how i expect.

Forum is OK - I’m just not sure whether we can answer your questions.
:slight_smile:

grep ruby /etc/httpd/conf/httpd.conf

LoadModule passenger_module
/opt/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.11/ext/apache2/mod_passenger.so
PassengerRoot /opt/ruby/lib/ruby/gems/1.8/gems/passenger-3.0.11
PassengerRuby /opt/ruby/bin/ruby

How do i uninstall the unused ones - i am assuming those are enterprise
and 1.9.3?

You can likely uninstall 1.9.3 with your operating system’s package
manager - whatever that is. For the other ones, it depends whether
they were installed with rvm or compiled from source. Since there
seem to be dependencies to other installations (httpd) I suggest you
ask the person who installed them or who is responsible for the other
software.

Cheers

robert

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs