Permission denied when installing gem

I am trying to install rackamole on Windows XP:

S:\development\DevKit>gem install rackamole
Temporarily 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 checked the resolution:

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

and there were no problems.

How to install gem?

+3
source share
3 answers

Installing C-extensions on Windows has always been a big and painful problem since Windows does not come with a compiler. Most gems that are intended for use on Windows systems publish a specialized version of gem with a specific platform field, which then includes pre-compiled binaries. This does not apply to rackamole, otherwise it would be visible here .

gem, FFI C- . , , rackamole, , , C-.

- Ruby, , , , .

Windows , , ​​ Ubuntu Debian rvm.

+1

Administrator .

+24

I agree with the comment of Vlad Lazarenko. You do not need to add your account to the local administrator group, just right-click on the terminal or command line and select "run as administrator" and try installing rackamole again.

+2
source

Source: https://habr.com/ru/post/1794966/


All Articles