在 Gemfile 中写了 gem "therubyracer" 据说要安装两个 gem gem install libv8 gem install therubyracer 执行 gem install libv8 时出错了,如下: E:>gem install libv8 Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing libv8: ERROR: Failed to build gem native extension.
D:/Ruby193/bin/ruby.exe extconf.rb
creating Makefile
系统找不到指定的路径。
系统找不到指定的路径。
系统找不到指定的路径。
D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/builder.rb:49:in
setup_python!': libv8 requires python 2 to be installed in order to build, but i
t is currently not available (RuntimeError)
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/build
er.rb:35:in
block in build_libv8!'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/build
er.rb:34:in chdir'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/build
er.rb:34:in
build_libv8!'
from D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/locat
ion.rb:24:in install!'
from extconf.rb:7:in
Gem files will remain installed in D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.1 6.14.1 for inspection. Results logged to D:/Ruby193/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.1/ext/libv8/ gem_make.out
求救啊,这是什么错