fatal error while bundle install (while installing

2019-05-02 21:44发布

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".

4条回答
迷人小祖宗
2楼-- · 2019-05-02 22:19

You need to install python since libv8 seems to depend on Python as you can see in project stats

查看更多
地球回转人心会变
3楼-- · 2019-05-02 22:24

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.

查看更多
来,给爷笑一个
4楼-- · 2019-05-02 22:33

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

查看更多
家丑人穷心不美
5楼-- · 2019-05-02 22:34

I opened issue 29 on github and I learned that libv8 is not supported on windows. so there is no solution for the error. Just you can change your platform.

查看更多
登录 后发表回答