Permission error when installing rspec

hello from here! i’m new in rspec and i have a problem while
installing rspec 1.1.4 gem:

marcio@marcio-work:~$ gem install rspec
Bulk updating Gem source index for: http://gems.rubyforge.org
ERROR: While executing gem … (Errno::EACCES)
Permission denied - /var/lib/gems/1.8/cache/rspec-1.1.4.gem

I did it with sudo and there was no problem, but when i attemp to use
rspec (spec [RUBYFILE]), the sys does not find the gem! So i
uninstalled it and now i’m having this permission problem. Anyone
could help to me?

Thanks anyway

On Tue, May 27, 2008 at 3:33 PM, marcio [email protected] wrote:

uninstalled it and now i’m having this permission problem. Anyone
could help to me?

Thanks anyway


rspec-users mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

I doubt this has anything to do with rspec. What happens when you try
to install other gems?

Pat

How about sudo gem install rspec?
Then type your password.

indeed it was with sudo. that wasn’t the problem. i installed another
linux in my pc and i dah out of date my gem! now things works
perfectly! definitely i’m a beginner! thanks a lot!

Hi Pat! Thanks a lot I realized that was not rspec the problem, i
changed my linux distro and i forgot to update my gem , i had the 0.9
version! Now the rspec and all the others gem works perfectly. thanks
a lot.