Forum: Ruby Can't install rails with gem

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
71fcb3f144f3ea08998a925b25da9847?d=identicon&s=25 Joey Marino (joeyda3rd)
on 2008-11-21 05:19
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?
71fcb3f144f3ea08998a925b25da9847?d=identicon&s=25 Joey Marino (joeyda3rd)
on 2008-11-21 05:21
Joey Marino 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
E130dba1826371fddb30959f08712b45?d=identicon&s=25 Maksim Ananjev (Guest)
on 2008-11-21 08:51
(Received via mailing list)
try "sudo gem install rails" or fix access rights your local gem
repository
71fcb3f144f3ea08998a925b25da9847?d=identicon&s=25 Joey Marino (joeyda3rd)
on 2008-11-21 19:10
Maksim Ananjev 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
6d9fdb4fe716a92211de779a7e500821?d=identicon&s=25 Michael Tomer (michael_tomer)
on 2008-11-21 19:20
Joey Marino wrote:
> Maksim Ananjev 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.
This topic is locked and can not be replied to.