RubyGems mysteriously broken (paths issue?)

E

Eeby

Just installed RubyGems 0.9.0 on Ubuntu 7.04. I ran gem install rails
and it said that it worked successfully.

But tried to run "rails mynewapp" and got "bash: rails: command not
found".

Ran...

# gem list -l rails

*** LOCAL GEMS ***

rails (1.2.3)
Web-application framework with template engine, control-flow
layer,
and ORM.

So the rails gem was installed. I tried...

# gem contents rails
Unable to find gem 'rails' in default gem paths

So gem list rails works, but gem contents rails doesn't work.

So I checked what gem thinks its environment is...

# gem environment
Rubygems Environment:
- VERSION: 0.9.0 (0.9.0)
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- GEM PATH:
- /var/lib/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org

/var/lib/gems/1.8 actually does contain "bin/" "cache/" "doc/" "gems/"
"source_cache" "specifications/". Within that, the gems/ dir does
indeed contain dirs for all the gems I've just installed such as
rails, actionmailer, mongrel, and several others.

Any help to fix this would be greatly appreciated.

Thanks.
 
H

hemant

Just installed RubyGems 0.9.0 on Ubuntu 7.04. I ran gem install rails
and it said that it worked successfully.

But tried to run "rails mynewapp" and got "bash: rails: command not
found".

Ran...

# gem list -l rails

*** LOCAL GEMS ***

rails (1.2.3)
Web-application framework with template engine, control-flow
layer,
and ORM.

So the rails gem was installed. I tried...

# gem contents rails
Unable to find gem 'rails' in default gem paths

So gem list rails works, but gem contents rails doesn't work.

So I checked what gem thinks its environment is...

# gem environment
Rubygems Environment:
- VERSION: 0.9.0 (0.9.0)
- INSTALLATION DIRECTORY: /var/lib/gems/1.8
- GEM PATH:
- /var/lib/gems/1.8
- REMOTE SOURCES:
- http://gems.rubyforge.org

/var/lib/gems/1.8 actually does contain "bin/" "cache/" "doc/" "gems/"
"source_cache" "specifications/". Within that, the gems/ dir does
indeed contain dirs for all the gems I've just installed such as
rails, actionmailer, mongrel, and several others.

Any help to fix this would be greatly appreciated.

Please remove the rubygems package that you installed using apt-get,
its broken. Download the tgz file of rubygems from rubyforge.org and
install rubygems using that. Everything will be fine after that.
 
E

Eeby

Please remove the rubygems package that you installed using apt-get,
its broken. Download the tgz file of rubygems from rubyforge.org and
install rubygems using that. Everything will be fine after that.

Yes, that corrected the problem. Thanks.
 
E

Eric Hodel

Just installed RubyGems 0.9.0 on Ubuntu 7.04. I ran gem install rails
and it said that it worked successfully.

RubyGems 0.9.0 has a security exploit. 0.9.4 is the latest.
 

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

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top