在 Windows7 64 位上安装 jslint-v8 Ruby gem 的问题 [英] Problems with jslint-v8 Ruby gem installation on Windows7 64-bit

查看:13
本文介绍了在 Windows7 64 位上安装 jslint-v8 Ruby gem 的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 7(64 位)上设置 Rally App SDK 2.0p 环境时出现问题.我已经从 ruby​​installer.org 安装了 Ruby 1.8.7-p358 并设法安装了 rake Ruby gem.但我在安装 jslint-v8 gem 时遇到问题.它依赖于需要使用 Ruby DevKit 构建的 therubyracerlibv8 gems.在安装过程中出现以下错误:

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:
uby> 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 的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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