Issue upgrading application to rails 4.2.1 with libv8 & devise & therubyracer -
my application working fine following gemfile:
source 'https://rubygems.org' #ruby version ruby "2.1.5" # bundle edge rails instead: gem 'rails', github: 'rails/rails' gem 'rails', '4.1.10' # use sqlite3 database active record gem 'pg' # use scss stylesheets gem 'sass-rails', '~> 4.0.3' # use uglifier compressor javascript assets gem 'uglifier', '>= 1.3.0' # use coffeescript .js.coffee assets , views gem 'coffee-rails', '~> 4.0.0' # see https://github.com/sstephenson/execjs#readme more supported runtimes # gem 'therubyracer', platforms: :ruby # use jquery javascript library gem 'jquery-rails' gem 'jquery-ui-rails' # turbolinks makes following links in web application faster. read more: https://github.com/rails/turbolinks gem 'turbolinks' # build json apis ease. read more: https://github.com/rails/jbuilder gem 'jbuilder', '~> 2.0' # bundle exec rake doc:rails generates api under doc/api. gem 'sdoc', '~> 0.4.0', group: :doc #add bootstrap css gem "twitter-bootstrap-rails" gem "therubyracer" gem "less-rails" # spring speeds development keeping application running in background. read more: https://github.com/rails/spring gem 'spring', group: :development #add paperclip image uploading - requires imagemagick - need rmagick heroku? gem "paperclip", :git => "git://github.com/thoughtbot/paperclip.git" gem 'rmagick' #aws-sdk s3 capability production gem 'aws-sdk', group: :production gem "rake", '10.4.2' #adding geoip our lookup location services gem 'geoip', '~> 1.4.0' #adding exception notifier debugging on heroku gem 'exception_notification' #annotate model game models details of database contents added comments top of files gem 'annotate', '~> 2.6.5' #for oauth authentication stripe api gem 'omniauth-stripe-connect' #for stripe checkout gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby' #for user management gem 'devise' #for devise facebook omni auth gem 'omniauth-facebook' #for storing custom settings gem 'rails_config' #httparty consuming external web services in ruby app - used gdistance class in services gem 'httparty' #i need latest version of fontawesome - 1 in bootstrap old! gem "font-awesome-rails" #google analytics - production gem 'rack-google_analytics', group: :production #ahoy on site analytics - trying out gem 'ahoy_matey' #using socialization gem user follows gem 'socialization' # use activemodel has_secure_password # gem 'bcrypt', '~> 3.1.7' # use unicorn app server # gem 'unicorn' # use capistrano deployment # gem 'capistrano-rails', group: :development # use debugger # gem 'debugger', group: [:development, :test]
i want update application use rails 4.2.1, update line in gemfile:
gem 'rails', '4.2.1'
when run bundle update following error:
using less 2.6.0 using less-rails 2.7.0 (was 2.6.0) gem::ext::builderror: error: failed build gem native extension. /users/andyarmstrong/.rbenv/versions/2.1.5/bin/ruby -r ./siteconf20150701-17291-17o68o1.rb extconf.rb creating makefile compiling v8 x64 using python 2.7.6 using compiler: /usr/bin/c++ (clang version 6.1.0) /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool: file: /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols in file included ../src/accessors.cc:28: in file included ../src/v8.h:60: in file included ../src/objects-inl.h:38: in file included ../src/elements.h:33: in file included ../src/heap.h:35: in file included ../src/incremental-marking.h:33: in file included ../src/mark-compact.h:32: ../src/spaces.h:896:26: error: 'this' pointer cannot null in well-defined c++ code; comparison may assumed evaluate true [-werror,-wtautological-undefined-compare] bool exists() { return != null && code_range_ != null; } ^~~~ ~~~~ ../src/spaces.h:898:9: error: 'this' pointer cannot null in well-defined c++ code; comparison may assumed evaluate false [-werror,-wtautological-undefined-compare] if (this == null || code_range_ == null) return false; ^~~~ ~~~~ 2 errors generated. make[1]: *** [/users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] error 1 make: *** [x64.release] error 2 /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, not found (libv8::location::vendor::archivenotfound) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/ext/libv8/location.rb:35:in `each' /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/ext/libv8/location.rb:35:in `verify_installation!' /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/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_enable_backtrace=1 -dv8_can_use_vfp2_instructions=true -darm_fpu=vfpv2 -dv8_can_use_vfp3_instructions=true -darm_fpu=vfpv3 -dwerror='' cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o libtool-static /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/libpreparser_lib.a cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o link(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/preparser cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o extconf failed, exit code 1 gem files remain installed in /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8 inspection. results logged /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/libv8-3.16.14.8/gem_make.out error occurred while installing libv8 (3.16.14.8), , bundler cannot continue. make sure `gem install libv8 -v '3.16.14.8'` succeeds before bundling.
so try command error suggests:
gem install libv8 -v '3.16.14.8'
this command fails error:
andys-macbook-pro:andyhelloworldruby andyarmstrong$ gem install libv8 -v '3.16.14.8' building native extensions. take while... error: error installing libv8: error: failed build gem native extension. /users/andyarmstrong/.rbenv/versions/2.1.5/bin/ruby -r ./siteconf20150701-18322-ri2u8p.rb extconf.rb creating makefile compiling v8 x64 using python 2.7.6 using compiler: /usr/bin/c++ (clang version 6.1.0) /applications/xcode.app/contents/developer/toolchains/xcodedefault.xctoolchain/usr/bin/libtool: file: /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o has no symbols in file included ../src/accessors.cc:28: in file included ../src/v8.h:60: in file included ../src/objects-inl.h:38: in file included ../src/elements.h:33: in file included ../src/heap.h:35: in file included ../src/incremental-marking.h:33: in file included ../src/mark-compact.h:32: ../src/spaces.h:896:26: error: 'this' pointer cannot null in well-defined c++ code; comparison may assumed evaluate true [-werror,-wtautological-undefined-compare] bool exists() { return != null && code_range_ != null; } ^~~~ ~~~~ ../src/spaces.h:898:9: error: 'this' pointer cannot null in well-defined c++ code; comparison may assumed evaluate false [-werror,-wtautological-undefined-compare] if (this == null || code_range_ == null) return false; ^~~~ ~~~~ 2 errors generated. make[1]: *** [/users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o] error 1 make: *** [x64.release] error 2 /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/ext/libv8/location.rb:36:in `block in verify_installation!': libv8 did not install properly, expected binary v8 archive '/users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/tools/gyp/libv8_base.a'to exist, not found (libv8::location::vendor::archivenotfound) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/ext/libv8/location.rb:35:in `each' /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/ext/libv8/location.rb:35:in `verify_installation!' /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/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_enable_backtrace=1 -dv8_can_use_vfp2_instructions=true -darm_fpu=vfpv2 -dv8_can_use_vfp3_instructions=true -darm_fpu=vfpv3 -dwerror='' cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/allocation.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/atomicops_internals_x86_gcc.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/bignum-dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/cached-powers.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/conversions.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/diy-fp.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fast-dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/fixed-dtoa.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/once.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparse-data.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/preparser-api.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/scanner.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/strtod.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/token.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/unicode.o cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser_lib/src/utils.o libtool-static /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/libpreparser_lib.a cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/preparser/preparser/preparser-process.o link(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/preparser cxx(target) /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8/vendor/v8/out/x64.release/obj.target/v8_base/src/accessors.o extconf failed, exit code 1 gem files remain installed in /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/gems/libv8-3.16.14.8 inspection. results logged /users/andyarmstrong/.rbenv/versions/2.1.5/lib/ruby/gems/2.1.0/extensions/x86_64-darwin-14/2.1.0-static/libv8-3.16.14.8/gem_make.out
doing searching tried following command:
gem install libv8 -v '3.16.14.8' -- --with-system-v8
- succeeds, when try bundle update again, therubyracer fails resolve v8 don't think system has v8 installed.
how can resolve libv8 issue?
the problem because of problem in libv8 source : https://github.com/cowboyd/libv8/issues/174
it fixed installing '3.16.14.7' this:
gem install libv8 -v '3.16.14.7'
and passed, adding gemfile:
gem 'libv8', '3.16.14.7'
Comments
Post a Comment