Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

fatal error while bundle install (while installing libv8)

I work on windows7 (32-bit) and I get error that while bundle install;

Installing libv8 (3.3.10.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:533:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

       C:/Ruby192/bin/ruby.exe extconf.rb 
*** 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=C:/Ruby192/bin/ruby
Checking for Python... Unable to build libv8: Python not found! 

So I can't complete "bundle install".

like image 234
yagmurdursun Avatar asked Feb 07 '12 10:02

yagmurdursun


2 Answers

Install ActivePython version 2.7.2.5, then run:

gem install libv8 --version 3.11.8.0

to install the libv8 in Windows, the latest version 3.11.8.3 can not work in windows, but 3.11.8.0 can in Windows 7.

like image 91
Eric Guo Avatar answered Oct 22 '22 07:10

Eric Guo


On windows 7, with ruby193 I installed python27, I added to the PATH variable the python's folder, I wrote gem install libv8 in the console and libv8 was succesfully installed

like image 41
Diego Avatar answered Oct 22 '22 07:10

Diego