在運行捆綁安裝的命令,我遇到了以下錯誤寶石:無法安裝therubyracer
Installing libv8 (3.3.10.4) with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension .
D:/RailsInstaller/Ruby1.9.2/bin/ruby.exe extconf.rb
* extconf.rb failed * Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.
Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=D:/RailsInstaller/Ruby1.9.2/bin/ruby Checking for Python...Unable to build libv8: Python not found!
Gem files will remain installed in D:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9 .1/gems/libv8-3.3.10.4 for inspection. Results logged to D:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/libv8-3.3 .10.4/ext/libv8/gem_make.out An error occured while installing libv8 (3.3.10.4), and Bundler cannot continue.
Make sure that
gem install libv8 -v '3.3.10.4'
succeeds before bundling.
環境:紅寶石1.9.2的Rails 3.2.1寶石:1.8.17 的Gemfile
source 'https://rubygems.org'
gem 'rails', '3.2.1'
gem 'sqlite3'
gem "heroku"
group :production do
gem 'pg'
end
gem 'execjs'
gem 'therubyracer'
gem 'libv8', '3.3.10.4'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
有人可以告訴我爲什麼我看到這個錯誤,以及如何解決它?
可能重複[therubyracer寶石在Windows](http://stackoverflow.com/questions/6356450/therubyracer-gem-on-windows) – 2014-06-18 07:10:05