V
V
Vasya Nikolaev2018-04-11 13:24:24
Ruby on Rails
Vasya Nikolaev, 2018-04-11 13:24:24

Permission denied @ rb_file_s_symlink when installing libv8 via gem?

When I try to install libv8 I get this:

C:\Ruby24-x64\msys64\mingw64\bin>gem install libv8
Temporarily enhancing PATH for MSYS/MINGW...
ERROR:  While executing gem ... (Errno::EACCES)
    Permission denied @ rb_file_s_symlink - (vendor/depot_tools/support/chromite_wrapper, C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-6.3.292.48.1/vendor/depot_tools/cbuildbot)

When trying to install therubyracer this:
C:\Ruby24-x64\msys64\mingw64\bin>gem install therubyracer
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions. This could take a while...
ERROR:  Error installing therubyracer:
        ERROR: Failed to build gem native extension.

    current directory: C:/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/ext/libv8
C:/Ruby24-x64/bin/ruby.exe -r ./siteconf20180411-4164-1cbbf5g.rb extconf.rb
creating Makefile
find: ‘out’: No such file or directory
GYP_GENERATORS=make \
build/gyp/gyp --generator-output="out" build/all.gyp \...

More:
c:\.......\bundle exec ruby main.rb
C:/Ruby24-x64/lib/ruby/2.4.0/net/protocol.rb:44:in `connect_nonblock': SSL_connect returned=1 errno=0 state=error: certificate verify failed (Faraday::SSLError)
        from C:/Ruby24-x64/lib/ruby/2.4.0/net/protocol.rb:44:in `ssl_socket_connect'
        from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:948:in `connect'
        from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:887:in `do_start'
        from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:876:in `start'
        from C:/Ruby24-x64/lib/ruby/2.4.0/net/http.rb:1407:in `request'

Ruby version 2.4.4
Gem 2.7.6
Rails 5.2.0
I just started learning Ruby from YouTube video tutorials, I seem to be doing everything one-on-one, but here is such an ambush. Tell me what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Mirilaczvili, 2018-04-12
@2ord

Do not use Windows as many gems are not compatible with it.

V
vsuhachev, 2018-04-16
@vsuhachev

`Failed to build gem native extension` - to build gems supplied in the source, you need a compiler, libraries, toolchain, etc... It seems that all this could be configured under Windows, google
The second way is a virtual machine with Linux

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question