在Windows环境下,安装Gem包:therubyracer时对libv8包有所依赖,

先安装libv8的时候报错:

095120626.jpg

解决:注释掉 gem therubyracer

原因:

"No, there is no way that I know of to currently install this gem on windows. The problem is that there is currently no pre-compiled version of the libv8 gem for Windows, and the source version is only compatible with *nix. It does not necessarily have to be that way, it just requires somebody taking the time to make the compile work for Windows. https://github.com/fractaloop/libv8

That said, Windows should come with a JScript, the Microsoft JavaScript runtime, which rails (via execjs) will automatically detect and use, so you should be able to just remove your dependency on therubyracer.

As the maintainer of that gem, this would of course make me sad, but it should get you on your way."





参考自:http://vavi.iteye.com/blog/1141488