Problems with jslint-v8 Ruby gem installation on Windows7 64-bit

╄→гoц情女王★ 提交于 2019-12-01 10:56:05

The gem you try to install depends on libv8 gem, which is nothing more than a wrapper for Google V8 JavaScript VM.

There is no pre-compiled libv8 for Windows (like there is for Linux or OSX), this means it needs to build V8 from scratch.

The code around the build process of V8 is not very portable, not to mention that to compile libv8 you need Python installed :-P

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.

Arman Ortega

Try this gem install libv8 -v '3.16.14.3' -- --with-system-v8

Reference: Error installing libv8: ERROR: Failed to build gem native extension

For building gem native extensions in Windows when you install a gem, you usually need the DevKit installed too: http://rubyinstaller.org/downloads/ - go to the devkit download link
Their github page has instructions for installing it: https://github.com/oneclick/rubyinstaller/wiki/Development-Kit

I would also recommend using Ruby 1.9.3 instead of 1.8.7, but that shouldn't be much of an issue

Hope that helps.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!