蔭試圖讓這個工作:twitter-bootstrap-rails,但如果我輸入bundle install
,我得到以下錯誤:Ruby on Rails的 - 設置引導3 - 捆綁安裝錯誤
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
[...]
Using sqlite3 1.3.9
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension
.
C:/_Festplatte_D/RubyOnRails/Ruby1.9.3/bin/ruby.exe extconf.rb
checking for main() in -lpthread... no
checking for v8.h... no
*** 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:
[...]
C:/_Festplatte_D/RubyOnRails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/libv8-3.16.14.3/
ext/libv8/location.rb:50:in `configure': You have chosen to use the version of V
8 found on your system (Libv8::Location::System::NotFoundError)
and *not* the one that is bundle with the libv8 rubygem. However,
it could not be located. please make sure you have a version of
v8 that is compatible with 3.16.14.3 installed. You may
need to special --with-v8-dir options if it is in a non-standard
location
thanks,
The Mgmt
from C:/_Festplatte_D/RubyOnRails/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/lib
v8-3.16.14.3/lib/libv8.rb:7:in `configure_makefile'
from extconf.rb:32:in `<main>'
Gem files will remain installed in C:/_Festplatte_D/RubyOnRails/Ruby1.9.3/lib/ru
by/gems/1.9.1/gems/therubyracer-0.12.1 for inspection.
Results logged to C:/_Festplatte_D/RubyOnRails/Ruby1.9.3/lib/ruby/gems/1.9.1/gem
s/therubyracer-0.12.1/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.12.1), and Bundler cannot
continue.
Make sure that `gem install therubyracer -v '0.12.1'` succeeds before bundling.
我也試過這個解決方案therubyracer_for_windows,但它沒有工作對我來說...
我使用win7的,ruby1.9.3,rails4,...
是否有任何人誰可以幫我?
不知道這是否會工作,因爲我還沒有這個錯誤呢。嘗試刪除Gemfile.lock(刪除它)並再次執行'bundle install'以嘗試重新創建Gemfile.lock。這在我的情況下工作了幾次 –
謝謝。我會盡快明天嘗試。我希望它能工作:] – Ismoh
它沒有工作,但無論如何感謝。 – Ismoh