Gem gem "therubyracer" 安装出错

wdxiaomomo · 2013年08月06日 · 最后由 nightire 回复于 2013年08月06日 · 6244 次阅读

在 Gemfile 中写了 gem "therubyracer" 据说要安装两个 gem gem install libv8 gem install therubyracer 执行 gem install libv8 时出错了,如下: E:>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.

D:/Ruby193/bin/ruby.exe extconf.rb creating Makefile 系统找不到指定的路径。 系统找不到指定的路径。 系统找不到指定的路径。 D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:49:in setup_python!': libv8 requires python 2 to be installed in order to build, but i t is currently not available (RuntimeError) from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/build er.rb:35:inblock in build_libv8!' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/build er.rb:34:in chdir' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/build er.rb:34:inbuild_libv8!' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/locat ion.rb:24:in install!' from extconf.rb:7:in

'

Gem files will remain installed in D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.1 6.14.1 for inspection. Results logged to D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/ gem_make.out

求救啊,这是什么错

跟 DevKit 有关吗,还是需要安装别的东西才行呀,新手求救

gem "therubyracer" 执行 bundle install 时,也会出现同样的错误

Using jquery-rails (3.0.4) Installing libv8 (3.11.8.17) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension .

D:/Ruby193/bin/ruby.exe extconf.rb creating Makefile 系统找不到指定的路径。 系统找不到指定的路径。 系统找不到指定的路径。 D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/builder.rb:49:in setup_python!': libv8 requires python 2 to be installed in order to build, but i t is currently not available (RuntimeError) from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/build er.rb:35:inblock in build_libv8!' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/build er.rb:34:in chdir' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/build er.rb:34:inbuild_libv8!' from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.11.8.17/ext/libv8/locat ion.rb:24:in `install!'

我觉得这种错误,google 才是万能的。 http://stackoverflow.com/questions/8126465/bundle-install-update-libv8-therubyracer-installation-fails-with-native-ex 不是 windows 的,不知道能不能解决你的问题

装 Node.JS,犯不着在这上面费劲。

需要 登录 后方可回复, 如果你还没有账号请 注册新账号