Can't install rails with gem

joey@lab:~$ gem --version
1.2.0
joey@lab:~$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

When I run:
joey@lab:~$ gem install rails
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory - /var/lib/gems/1.8/cache/rake-0.8.3.gem

google gives me a japanese blog
any ideas?

Joey M. wrote:

joey@lab:~$ gem --version
1.2.0
joey@lab:~$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

When I run:
joey@lab:~$ gem install rails
ERROR: While executing gem … (Errno::ENOENT)
No such file or directory - /var/lib/gems/1.8/cache/rake-0.8.3.gem

google gives me a japanese blog
any ideas?

o ya, ubuntu 8.10 intrepid ibex

Maksim A. wrote:

try “sudo gem install rails” or fix access rights your local gem
repository

OMG duh! I am still getting used to this “no root account” thing

try “sudo gem install rails” or fix access rights your local gem
repository

Joey M. wrote:

Maksim A. wrote:

try “sudo gem install rails” or fix access rights your local gem
repository

OMG duh! I am still getting used to this “no root account” thing

That’s odd. My Ubuntu box (8.0.4, I think) installs the gem in “./gems”
if I forget to use sudo.

Though I actually wish it would just fail! Then I wouldn’t be confused
when trying to figure out why a gem isn’t showing up in the regular
directory.