在 Windows 7(64 位)上设置 Rally App SDK 2.0p 环境时出现问题。我已经从 rubyinstaller.org 安装了 Ruby 1.8.7-p358 并成功安装了 rake Ruby gem。但我安装时遇到问题jslint-v8宝石。它依赖于红宝石赛车手 and libv8需要使用 Ruby DevKit 构建的 gem。在安装过程中我收到以下错误:
C:\ruby> gem install jslint-v8
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing jslint-v8:
ERROR: Failed to build gem native extension.
C:/ruby/bin/ruby.exe extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/ruby/bin/ruby
extconf.rb:13: uninitialized constant Gem (NameError)
Checking for Python...
Gem files will remain installed in C:/ruby/lib/ruby/gems/1.8/gems/libv8-3.3.10.4 for inspection.
Results logged to C:/ruby/lib/ruby/gems/1.8/gems/libv8-3.3.10.4/ext/libv8/gem_make.out
有谁知道win7下如何正确安装吗?
谢谢你!
您尝试安装的 gem 取决于libv8
gem,它只不过是 Google V8 JavaScript VM 的包装器。
Windows 没有预编译的 libv8(与 Linux 或 OSX 一样),这意味着它需要从头开始构建 V8。
V8 构建过程的代码不太可移植,更不用说要编译 libv8 你需要安装 Python :-P
直到今天,没有人能够按照存储库说明在 Windows 上执行 libv8 预编译说明:
https://github.com/cowboyd/libv8
很抱歉未能给您提供更好的回复。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)