Skip to content

Instantly share code, notes, and snippets.

@rohitkadam19
Created May 15, 2013 19:25
Show Gist options
  • Save rohitkadam19/5586612 to your computer and use it in GitHub Desktop.
Save rohitkadam19/5586612 to your computer and use it in GitHub Desktop.
Error while bundle install in rails project. Therubyracer giving problem.
Installing therubyracer (0.11.0beta1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
/home/rohit/.rvm/rubies/ruby-1.9.3-p286/bin/ruby extconf.rb
checking for main() in -lpthread... yes
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You 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=/home/rohit/.rvm/rubies/ruby-1.9.3-p286/bin/ruby
--with-pthreadlib
--without-pthreadlib
/home/rohit/.rvm/gems/ruby-1.9.3-p286@rails3tutorial2ndEd/gems/therubyracer-0.11.0beta1/ext/v8/build.rb:49:in `build_with_rubygem_libv8': undefined local variable or method `libv8_include_flags' for main:Object (NameError)
from extconf.rb:18:in `<main>'
Gem files will remain installed in /home/rohit/.rvm/gems/ruby-1.9.3-p286@rails3tutorial2ndEd/gems/therubyracer-0.11.0beta1 for inspection.
Results logged to /home/rohit/.rvm/gems/ruby-1.9.3-p286@rails3tutorial2ndEd/gems/therubyracer-0.11.0beta1/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.11.0beta1), and Bundler cannot continue.
Make sure that `gem install therubyracer -v '0.11.0beta1'` succeeds before bundling.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment