gem error: (Errno::EACCES) Permission denied

I am using microsoft XP Pro-SP3 and I am facing this problem.

C:\Ruby192>gem install rails --include-dependencies INFO: `gem install -y` is now default and will be removed INFO: use --ignore-dependencies to install only the gems you list ERROR: While executing gem ... (Errno::EACCES)     Permission denied - C:/Documents and Settings/admin/.gem/specs

Please help to complete with any idea.

i am already an admin in my system?

And I also tried with ctrl+shift+enter ... no use. :frowning:

Are you AN admin or are you THE admin? Gem tries to install in a directory of the user named admin, if your logged in user is named mahendra and has admin rights that is probably not enough.

Also please check if the directory exists and check the permissions on that directory.

Top posted from android