2014-04-08 70 views
1

我想將twitter-boostrap集成到我的Ruby on Rails項目中。 對於我已經寫在我的gemfile上的gem "therubyracer"gem "less-rails"gem "twitter-bootstrap-rails"。然後在中的bundle install欄命令提示符。 安裝less-rails後。此錯誤正在提交Ruby on Rails的Twitter Bootstrap

Gem::Installer::ExtensionBuildError: ERROR: 
Failed to build gem native extension` 
c:/row/Ruby200/bin/ruby.exe extconf.rb` 
creating Makefile 
The system cannot find the path specified. 
The system cannot find the path specified.` 
c:/row/Ruby200/lib/ruby/gems/2.0.0/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, b 
ut it is currently not available (RuntimeError) 
from c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:42:in `block in build_libv8!' 
from c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `chdir' 
from c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/builder.rb:40:in `build_libv8!' 
from c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/location.rb:24:in `install!' 
from extconf.rb:7:in `<main>' 

Gem files will remain installed in c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8 -3.16.14.3 for inspection. 
Results logged to c:/row/Ruby200/lib/ruby/gems/2.0.0/gems/libv8-3.16.14.3/ext/libv8/gem_make.out 
An error occurred while installing libv8 (3.16.14.3), and Bundler cannotcontinue. 
Make sure that `gem install libv8 -v '3.16.14.3'` succeeds before bundling. 

幫助。感謝

+2

我很好奇這是怎麼回事:'libv8需要安裝python 2來編譯'並不能說明你的安裝有什麼問題。 – mcfinnigan

+0

我沒有得到 –

回答

0

刪除

group :assets do 
end 

但保持這個組裏面提到的寶石,然後做捆綁安裝。

gem 'therubyracer', :platforms => :ruby 
gem 'less-rails' 
gem 'devise' 
+0

只是一分鐘。嘗試 –

+0

沒有..它給出了相同的錯誤 –

+0

'使用less-rails(2.5.0)'後錯誤即將到來 –