Ruby on Rails 中的 Twitter Bootstrap [英] Twitter Bootstrap in Ruby on Rails
本文介绍了Ruby on Rails 中的 Twitter Bootstrap的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将 twitter-boostrap 集成到我的 Ruby on Rails 项目中.为此,我在我的 gemfile 上写了 - gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
.然后在 rails 命令提示符中bundle install
.安装 less-rails
后.这个错误来了
I want to integrate twitter-boostrap in my Ruby on Rails project.
For that i have written- gem "therubyracer"
gem "less-rails"
gem "twitter-bootstrap-rails"
on my gemfile. And then bundle install
in rails command prompt.
After installing less-rails
. This error is comming
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.
帮助.谢谢
推荐答案
移除
group :assets do
end
但是要在这个组中提到 gems,然后进行 bundle install.
But keep gems mentioned inside this group, then do bundle install.
gem 'therubyracer', :platforms => :ruby
gem 'less-rails'
gem 'devise'
这篇关于Ruby on Rails 中的 Twitter Bootstrap的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文