rubygems only runs as root

J

jzakiya

Loaded the lastest rubygems (0.9.0) as root, like always,
but in my USER account I can't see it anymore. I have no
problem doing this on my laptop. The only difference is I'm
using ruby 1.8.5 in my USER account, while the root has 1.8.4.

I'm using PCLinuxOS 0.9.2 on my desktop and 0.9.3a on the laptop.

In both cases gem was placed in /usr/bin/gem and the PATH is set
to see this dir in both case. But when I run the gem command from my
desktop I get the following message:

$ /usr/bin/gem
/usr/bin/gem:10: unitialized constant Gem (NameError)

or

$ gem
bash: /usr/local/bin/gem: No such file or directory
 
L

Lyle Johnson

Loaded the lastest rubygems (0.9.0) as root, like always,
but in my USER account I can't see it anymore. I have no
problem doing this on my laptop. The only difference is I'm
using ruby 1.8.5 in my USER account, while the root has 1.8.4.

The 'gem' command is just a front-end to code in the RubyGems library,
so you probably need to install RubyGems under your user account copy
of Ruby (the 1.8.5 installation) as well.
 

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,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top