微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby-on-rails – 尝试安装libv8“无法构建gem本机扩展”

我正在使用W7 64位.简单地说,当我输入:
C:\Sites>gem install libv8

我得到这个结果:

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:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
which: no gmake in ("my PATH is here,and as far as I kNow it should include everything I need")
/usr/bin/env: python: No such file or directory
C:\RailsInstaller\DevKit\bin\make.EXE: *** [out/Makefile.ia32] Error 127
Using compiler: C:\RailsInstaller\DevKit\mingw\bin\g++.EXE
GYP_GENERATORS=make \
    build/gyp/gyp --generator-output="out" build/all.gyp \
                  -Ibuild/standalone.gypi --depth=. \
                  -Dv8_target_arch=ia32 \
                  -S.ia32 -Dhost_arch=ia32


Gem files will remain installed in C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9
.1/gems/libv8-3.11.8.3 for inspection.
Results logged to C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.1
1.8.3/ext/libv8/gem_make.out

卸载和重新安装不起作用.

我正在尝试安装libv8,因为它是twitter-bootstrap-rails的依赖.

编辑:正如我所说,我在Windows上,现在我意识到这个错误中列出的文件路径是/usr/bin/env.这很奇怪

解决方法

解决方案是安装版本.0
gem install libv8 --version 3.11.8.0

直到这是固定的,因为我也经历过这个

原文地址:https://www.jb51.cc/ruby/272187.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐