首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装libv8时出错

安装libv8时出错
EN

Stack Overflow用户
提问于 2015-03-17 20:41:26
回答 1查看 423关注 0票数 0

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

代码语言:javascript
复制
gem install libv8 -v '3.16.14.3'

我得到了以下输出。

代码语言:javascript
复制
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

我对如何解决这个问题感到困惑。

谁来帮帮我好吗。

EN

回答 1

Stack Overflow用户

发布于 2015-03-17 20:45:33

libv8需要安装Python2才能构建,但目前还不可用(RuntimeError)

在您的系统中安装了Python ??

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/29099366

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档