ruby - Cannot install therubyracer -
i forked repository github, however, when try run "bundle install," following error output:
robert-quinns-macbook-pro:~ robertquinn$ gem install therubyracer building native extensions. take while... error: error installing therubyracer: error: failed build gem native extension. /users/robertquinn/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb creating makefile compiling v8 x64 using python 2.5.4 unable find compiler officially supported v8. recommended use gcc v4.4 or higher using compiler: g++ unable find compiler officially supported v8. recommended use gcc v4.4 or higher file "./gyp-mac-tool", line 167 fd = os.open(lockfile, os.o_rdonly|os.o_noctty|os.o_creat, 0o666) ^ syntaxerror: invalid syntax make[1]: *** [/users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a] error 1 make: *** [x64.release] error 2 /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, not found (libv8::location::vendor::archivenotfound) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each' /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!' /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!' extconf.rb:7:in `<main>' gyp_generators=make \ build/gyp/gyp --generator-output="out" build/all.gyp \ -ibuild/standalone.gypi --depth=. \ -dv8_target_arch=x64 \ -s.x64 -dv8_can_use_vfp_instructions=true cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o libtool-static /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a gem files remain installed in /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17 inspection. results logged /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/gem_make.out robert-quinns-macbook-pro:~ robertquinn$ robert-quinns-macbook-pro:~ robertquinn$
here things have tried:
gem uninstall libv8 brew install v8 gem install therubyracer
as as:
rubyopt=-rrubygems gem install therubyracer
any ideas?
edit
after entering these commands:
$ brew tap homebrew/dupes $ brew install apple-gcc42
here full output including result of commands:
robert-quinns-macbook-pro:~ robertquinn$ brew tap homebrew/dupes cloning /usr/local/library/taps/homebrew-dupes... remote: counting objects: 894, done. remote: compressing objects: 100% (488/488), done. remote: total 894 (delta 491), reused 795 (delta 406) receiving objects: 100% (894/894), 154.86 kib | 235 kib/s, done. resolving deltas: 100% (491/491), done. tapped 41 formula robert-quinns-macbook-pro:~ robertquinn$ brew install apple-gcc42 ==> downloading http://r.research.att.com/tools/gcc-42-5666.3-darwin11.pkg ######################################################################## 100.0% ==> caveats note: formula provides components removed xcode in 4.2 release. there no reason install formula if using version of xcode prior 4.2. formula contains compilers built apple's gcc sources, build 5666.3, available from: http://opensource.apple.com/tarballs/gcc compilers have `-4.2` suffix. gfortran compiler included. ==> summary /usr/local/cellar/apple-gcc42/4.2.1-5666.3: 104 files, 75m, built in 110 seconds robert-quinns-macbook-pro:~ robertquinn$ gem install therubyracer building native extensions. take while... error: error installing therubyracer: error: failed build gem native extension. /users/robertquinn/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb creating makefile compiling v8 x64 using python 2.5.4 unable find compiler officially supported v8. recommended use gcc v4.4 or higher using compiler: g++ unable find compiler officially supported v8. recommended use gcc v4.4 or higher file "./gyp-mac-tool", line 167 fd = os.open(lockfile, os.o_rdonly|os.o_noctty|os.o_creat, 0o666) ^ syntaxerror: invalid syntax make[1]: *** [/users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a] error 1 make: *** [x64.release] error 2 /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, not found (libv8::location::vendor::archivenotfound) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `each' /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:35:in `verify_installation!' /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/location.rb:26:in `install!' extconf.rb:7:in `<main>' gyp_generators=make \ build/gyp/gyp --generator-output="out" build/all.gyp \ -ibuild/standalone.gypi --depth=. \ -dv8_target_arch=x64 \ -s.x64 -dv8_can_use_vfp_instructions=true cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o cxx(target) /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o libtool-static /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/vendor/v8/out/x64.release/libpreparser_lib.a gem files remain installed in /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17 inspection. results logged /users/robertquinn/.rvm/gems/ruby-1.9.3-p194/gems/libv8-3.11.8.17/ext/libv8/gem_make.out robert-quinns-macbook-pro:~ robertquinn$
it's failing have no compiler on system.
install gcc compiler
for instance: https://github.com/kennethreitz/osx-gcc-installer
or (homebrew):
$ brew tap homebrew/dupes $ brew install apple-gcc42
Comments
Post a Comment