问题描述
在Windows 7(64位)上的Rally App SDK 2.0p环境设置期间出现问题.我已经从rubyinstaller.org安装了Ruby 1.8.7-p358,并设法安装了rake Ruby gem.但是我在安装 jslint-v8 gem时遇到问题.它依赖于需要使用Ruby DevKit构建的 therubyracer 和 libv8 宝石.在安装过程中,出现以下错误:
There is a problem during Rally App SDK 2.0p environment setup on Windows 7 (64-bit). I have installed Ruby 1.8.7-p358 from rubyinstaller.org and managed to install rake Ruby gem. But I have problems installing jslint-v8 gem. It has dependencies on therubyracer and libv8 gems which need to be built using Ruby DevKit. During the installation I got the following error:
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中正确安装它吗?谢谢!
Does anyone know how to install it correctly in Win7?Thank you!
推荐答案
您尝试安装的gem取决于libv8
gem,它仅是Google V8 JavaScript VM的包装器.
The gem you try to install depends on libv8
gem, which is nothing more than a wrapper for Google V8 JavaScript VM.
没有用于Windows的预编译libv8(就像Linux或OSX一样),这意味着它需要从头开始构建V8.
There is no pre-compiled libv8 for Windows (like there is for Linux or OSX), this means it needs to build V8 from scratch.
围绕V8的构建过程的代码不是很可移植,更不用说要编译libv8,您需要安装Python :-P
The code around the build process of V8 is not very portable, not to mention that to compile libv8 you need Python installed :-P
直到今天,没有人能够按照存储库中的说明遵循Windows上的libv8预编译说明:
Until today nobody was able to follow the instructions for libv8 pre-compilation on Windows, following the repository instructions:
https://github.com/cowboyd/libv8
抱歉,无法为您提供更好的答复.
Sorry not been able to provide you a better response.
这篇关于Windows7 64位上的jslint-v8 Ruby gem安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!