rubygems - Rails: error while installing rubyracer -
i running 'bundle install' on linode server. not able install cause of rubyracer. bundle install output is:
installing therubyracer (0.11.0) gem::installer::extensionbuilderror: error: failed build gem native extension. /usr/local/bin/ruby extconf.rb checking main() in -lpthread... yes *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-pthreadlib --without-pthreadlib --enable-debug --disable-debug /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer-0.11.0/ext/v8/build.rb:50:in `build_with_rubygem_libv8': undefined local variable or method `libv8_include_flags' main:object (nameerror) extconf.rb:20:in `<main>' gem files remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer-0.11.0 inspection. results logged /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer-0.11.0/ext/v8/gem_make.out error occurred while installing therubyracer (0.11.0), , bundler cannot continue. make sure `gem install therubyracer -v '0.11.0'` succeeds before bundling.
actually gem rubyracer installed version 0.11.4. don't know why not taking version , accepting 0.11.0.
also how install 0.11.0. when run command given in error "gem install therubyracer -v '0.11.0'", fails execute , gives:
building native extensions. take while... error: error installing therubyracer: error: failed build gem native extension. /usr/local/bin/ruby extconf.rb checking main() in -lpthread... yes *** extconf.rb failed *** not create makefile due reason, lack of necessary libraries and/or headers. check mkmf.log file more details. may need configuration options. provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=/usr/local/bin/ruby --with-pthreadlib --without-pthreadlib --enable-debug --disable-debug /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer-0.11.0/ext/v8/build.rb:50:in `build_with_rubygem_libv8': undefined local variable or method `libv8_include_flags' main:object (nameerror) extconf.rb:20:in `<main>' gem files remain installed in /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer- 0.11.0 inspection. results logged /usr/local/lib/ruby/gems/1.9.1/gems/therubyracer-0.11.0/ext/v8/gem_make.out
can here help? searched lot on stack , git none of given solutions working.
my gemfile:
source 'https://rubygems.org' gem 'rails', '3.2.12' gem "paperclip" gem 'mysql2' gem "devise" group :assets gem 'sass-rails', '~> 3.2.3' gem 'coffee-rails', '~> 3.2.1' gem 'uglifier', '>= 1.0.3' end gem 'jquery-rails' gem 'libv8', '3.11.8.4', :platform => :ruby gem 'therubyracer', '0.11.0', :platforms => :ruby gem 'rails_admin' gem 'unicorn' gem 'delayed_job_active_record' gem 'daemons'
i face same problem on ubuntu:
after experimentation able confirm 'gem install therubyracer --pre
' on command line worked okay, telling bundler use --pre
option didn't work:
bundle config build.therubyracer --pre
i don't know if because gem being pulled in via dependency , not explicit 'gem' line in gemfile. unable fix after extensive googling, since 0.11 seems few hours old decided try reverting previous 0.10
version adding:
gem 'therubyracer', '=0.10'
before use of gem depended on it. forced bundler pick earlier version , installed charm. someone fix 0.11
enough.
after looking @ issues therubyracer on github seems related 2 different issues - 1 closed: https://github.com/cowboyd/therubyracer/issues/213 suggests installing libv8 gem first (or explicitly), , causes different error: https://github.com/cowboyd/therubyracer/issues/215 , not yet closed - libv8 gem seems have corrupted binary in 64-bit targets. solution appears to build libv8 source or did , 0.11beta8 or earlier (someone says 0.11beta8
works). until suggest watch 215 issue on github , await fix.
thanks.
Comments
Post a Comment