Saltycrane logo

Sofeng's Blog

Notes on Python, Django, and web development on Ubuntu Linux

     Posts tagged "rails"

gem error: Could not find rails (> 0) in any repository


Installing rails (per the Rails book, 3rd edition):
$ sudo apt-get update
$ sudo apt-get install build-essential
$ sudo apt-get install rubygems ruby1.8-dev libsqlite3-dev
$ sudo gem install -y rails
I got this error:
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR:  While executing gem ... (Gem::GemNotFoundException)
    Could not find rails (> 0) in any repository
Per the Army of Evil Robots article, I did the following:
$ gem env
RubyGems Environment:
  - VERSION: 0.9.4 (0.9.4)
  - INSTALLATION DIRECTORY: /var/lib/gems/1.8
  - GEM PATH:
     - /var/lib/gems/1.8
  - REMOTE SOURCES:
     - http://gems.rubyforge.org
$ sudo rm /var ...
Read more...
Created with Django | Hosted by Webfaction