相关疑难解决方法(0)

安装libv8时出错:错误:无法构建gem本机扩展

我做了一个铁轨项目,

rails new test_bootstrap.
Run Code Online (Sandbox Code Playgroud)

成功了.

搬到了项目目录并添加了宝石

gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
Run Code Online (Sandbox Code Playgroud)

并运行

bundle install
Run Code Online (Sandbox Code Playgroud)

之后,我有这个错误.

Installing libv8 (3.16.14.3)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.

c:/RailsInstaller/Ruby1.9.3/bin/ruby.exe extconf.rb
creating Makefile
??? ??? ?? ? ????.                                                          ??? ??? ?? ?
????.                                                          ??? ??? ?? ? ????.

c:/RailsInstaller/Ruby1.9.3/lib/ruby/ge
ms/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 (RuntimeErr
or) from …
Run Code Online (Sandbox Code Playgroud)

ruby windows ruby-on-rails libv8

172
推荐指数
6
解决办法
9万
查看次数

标签 统计

libv8 ×1

ruby ×1

ruby-on-rails ×1

windows ×1