安装libv8时出错

时间:2015-03-17 12:41:26

标签: ruby-on-rails ruby ruby-on-rails-4 ruby-on-rails-3.2 libv8

我尝试使用以下命令安装libv8 v3.16.14.3

gem install libv8 -v '3.16.14.3'

我得到了以下输出。

Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing libv8:
    ERROR: Failed to build gem native extension.

    C:/software/ruby-1.9.3/bin/ruby.exe extconf.rb
creating Makefile
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:58:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:42:in `block in build_libv8!'
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `chdir'
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `build_libv8!'
    from C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:24:in `install!'
    from extconf.rb:7:in `<main>'


Gem files will remain installed in C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3 for inspection.
Results logged to C:/software/ruby-1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/gem_make.out

我很困惑如何解决这个问题。

有人可以请你帮我。

1 个答案:

答案 0 :(得分:0)

libv8需要安装python 2才能构建,但它目前不可用(RuntimeError)

在你的系统中安装Python ??