Can't install therubyracer gem


  • | 3141 points

    I get error when try to install gem therubyracer due to libv8 gem:

    λ cat C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/libv8-3.16.14.19/gem_make.out
    current directory: C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/ext/libv8
    C:/laragon-ruby/bin/ruby/Ruby24-x64/bin/ruby.exe -r ./siteconf20181213-6584-1x9zdft.rb extconf.rb
    creating Makefile
    find: â?~outâ?T: No such file or directory
    GYP_GENERATORS=make \
    build/gyp/gyp --generator-output="out" build/all.gyp \
                  -Ibuild/standalone.gypi --depth=. \
                  -Dv8_target_arch=ia32 \
                  -S.ia32  -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
    GYP_GENERATORS=make \
    build/gyp/gyp --generator-output="out" build/all.gyp \
                  -Ibuild/standalone.gypi --depth=. \
                  -Dv8_target_arch=x64 \
                  -S.x64  -Dv8_enable_backtrace=1 -Dv8_can_use_vfp2_instructions=true -Darm_fpu=vfpv2 -Dv8_can_use_vfp3_instructions=true -Darm_fpu=vfpv3
    Patching out/build/All.target.ia32.mk...
    Patching out/build/All.target.x64.mk...
    Patching out/Makefile.ia32...
    Patching out/Makefile.x64...
    Patching out/preparser/preparser.target.ia32.mk...
    Patching out/preparser/preparser.target.x64.mk...
    Patching out/samples/lineprocessor.target.ia32.mk...
    Patching out/samples/lineprocessor.target.x64.mk...
    Patching out/samples/process.target.ia32.mk...
    Patching out/samples/process.target.x64.mk...
    Patching out/samples/shell.target.ia32.mk...
    Patching out/samples/shell.target.x64.mk...
    Patching out/src/d8.target.ia32.mk...
    Patching out/src/d8.target.x64.mk...
    Patching out/src/d8_js2c.host.x64.mk...
    Patching out/src/d8_js2c.target.ia32.mk...
    Patching out/tools/gyp/js2c.host.x64.mk...
    Patching out/tools/gyp/js2c.target.ia32.mk...
    Patching out/tools/gyp/mksnapshot.host.x64.mk...
    Patching out/tools/gyp/mksnapshot.target.ia32.mk...
    Patching out/tools/gyp/postmortem-metadata.target.ia32.mk...
    Patching out/tools/gyp/postmortem-metadata.target.x64.mk...
    Patching out/tools/gyp/preparser_lib.target.ia32.mk...
    Patching out/tools/gyp/preparser_lib.target.x64.mk...
    Patching out/tools/gyp/v8.host.x64.mk...
    Patching out/tools/gyp/v8.target.ia32.mk...
    Patching out/tools/gyp/v8.target.x64.mk...
    Patching out/tools/gyp/v8_base.host.x64.mk...
    Patching out/tools/gyp/v8_base.target.ia32.mk...
    Patching out/tools/gyp/v8_base.target.x64.mk...
    Patching out/tools/gyp/v8_nosnapshot.host.x64.mk...
    Patching out/tools/gyp/v8_nosnapshot.target.ia32.mk...
    Patching out/tools/gyp/v8_nosnapshot.target.x64.mk...
    Patching out/tools/gyp/v8_shell.host.x64.mk...
    Patching out/tools/gyp/v8_shell.target.ia32.mk...
    Patching out/tools/gyp/v8_snapshot.host.x64.mk...
    Patching out/tools/gyp/v8_snapshot.target.ia32.mk...
    Patching out/tools/gyp/v8_snapshot.target.x64.mk...
    make[1]: Entering directory '/c/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out'
      CXX(target) /c/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o
    ../src/allocation.cc:123:3: fatal error: opening dependency file C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/.deps/c/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o.d.raw: No such file or directory
     } }  // namespace v8::internal
       ^
    compilation terminated.
    make[1]: *** [tools/gyp/preparser_lib.target.x64.mk:87: /c/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o] Error 1
    make[1]: Leaving directory '/c/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out'
    make: *** [Makefile:195: x64.release] Error 2
    C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive 'C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, but it was not found (Libv8::Location::Vendor::ArchiveNotFound)
            from C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/ext/libv8/location.rb:35:in `each'
            from C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/ext/libv8/location.rb:35:in `verify_installation!'
            from C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/ext/libv8/location.rb:26:in `install!'
            from extconf.rb:7:in `<main>'
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/disable-building-tests.patch
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/disable-werror-on-osx.patch
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/disable-xcode-debugging.patch
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/do-not-imply-vfp3-and-armv7.patch
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/do-not-use-MAP_NORESERVE-on-freebsd.patch
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/do-not-use-vfp2.patch
    Applying C:/laragon-ruby/bin/ruby/Ruby24-x64/lib/ruby/gems/2.4.0/gems/libv8-3.16.14.19/patches/fPIC-for-static.patch
    Compiling v8 for x64
    Using python 2.7.13
    Using compiler: c++ (GCC version 7.3.0)
    Beginning compilation. This will take some time.
    Building v8 with env CXX=c++ LINK=c++ make x64.release
    
    extconf failed, exit code 1
    

  • administrators
    | 125936 points

    @Samir-Sabri : Please use Ruby 2.3 instead. You don't need to use Ruby 2.4 if you don't force to.


Log in to reply
 

Looks like your connection to Laragon was lost, please wait while we try to reconnect.