查看log文件发现错误为
D:/WNPM/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
D:/WNPM/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:58:in `setup_python!': libv8 requires python 2 to be installed in order to build, but it is currently not available (RuntimeError)
from D:/WNPM/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:42:in `block in build_libv8!'
from D:/WNPM/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `chdir'
from D:/WNPM/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `build_libv8!'
from D:/WNPM/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/ext/libv8/location.rb:24:in `install!'
from extconf.rb:7:in `<main>'
看提示好像需要安装python2 不知道是不是这个原因。
------解决方案--------------------
这是在安装哪个 gem 呀? 竟然需要 python 啊。
------解决方案--------------------
哦,这个是解析javascript的 V8 引擎,怪不得。
http://rubygems.org/gems/libv8
把 python2 装上吧, 这个gem的作者也不容易 哈。