试图安装libv8,“无法构建gem原生扩展” [英] Attempting to install libv8, "failed to build gem native extension"

查看:145
本文介绍了试图安装libv8,“无法构建gem原生扩展”的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用W7 64bit。简单地说,当我输入时:

  C:\网站> gem install libv8 

我得到这个结果:

 暂时增强包括DevKit的路径... 
构建本机扩展。这可能需要一段时间...
错误:安装libv8时出错:
错误:无法构建gem本机扩展。

C:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
创建Makefile
其中:no gmake in(我的PATH在这里,到目前为止因为我知道它应该包括我需要的一切)
/ usr / bin / env:python:没有这样的文件或目录
C:\RailsInstaller\DevKit\bin\make.EXE: *** [out / Makefile.ia32]错误127
使用编译器:C:\RailsInstaller\DevKit\mingw\bin\g ++ .EXE
GYP_GENERATORS = make \
build / gyp / gyp --generator-output =outbuild / all.gyp \
-Ibuild / standalone.gypi --depth =。 \
-Dv8_target_arch = ia32 \
-S.ia32 -Dhost_arch = ia32


Gem文件将保持安装在C:/RailsInstaller/Ruby1.9.3 /lib/ruby/gems/1.9
.1 / gems / libv8-3.11.8.3进行检查。
记录到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 / b

  gem install libv8 --version 3.11.8.0 

直到这是固定的,就像我经历过的那样,也是

I am using W7 64bit. Simply put, when I enter:

C:\Sites>gem install libv8

I get this result:

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

Uninstalling and reinstalling does not work.

I'm trying to install libv8 because it's a dependency for twitter-bootstrap-rails.

EDIT: As I said, I'm on Windows, and I'm realizing now that there's a filepath listed in this error as /usr/bin/env. So that's weird.

解决方案

The solution is to install version .0

gem install libv8 --version 3.11.8.0

until this is fixed, as I experienced this, too

这篇关于试图安装libv8,“无法构建gem原生扩展”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆