Can't install rails with gem


#1

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?


#2

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


#3

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


#4

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


#5

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.