Ruby – Permission denied error while installing gem

gem, installation, permissions, ruby, windows

I am trying to install rackamole on Windows XP:

S:\development\DevKit>gem install rackamoleTemporarily enhancing PATH to include DevKit...Building native extensions.  This could take a while...ERROR:  While executing gem ... (Errno::EACCES)    Permission denied - S:/development/Ruby/lib/ruby/gems/1.9.1/gems/rackamole-0.4.0/...

I have checked permission:

S:\development\DevKit>notepad S:\development\Ruby\lib\ruby\gems\1.9.1\gems\rackamole-0.4.0\some.txt

and didn't have any problem.

How can I install gem?

Best Solution

Running the terminal as Administrator user will solve this problem.