简体   繁体   English

Ruby on Rails中的Twitter引导程序

[英]Twitter Bootstrap in Ruby on Rails

I want to integrate twitter-boostrap in my Ruby on Rails project. 我想将twitter-boostrap集成到我的Ruby on Rails项目中。 For that i have written- gem "therubyracer" gem "less-rails" gem "twitter-bootstrap-rails" on my gemfile. 为此,我在gemfile上写了gem "therubyracer" gem "less-rails" gem "twitter-bootstrap-rails" And then bundle install in rails command prompt . 然后bundle installrails命令提示符下 After installing less-rails . 在安装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.

Help. 救命。 thanks 谢谢

Remove 去掉

group :assets do 
end

But keep gems mentioned inside this group, then do bundle install. 但是请在此组中保留宝石,然后进行捆绑安装。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Twitter引导模态与铁轨上的红宝石 - twitter bootstrap modal with ruby on rails Ruby on Rails Twitter引导glyphicons路径问题 - Ruby on rails twitter bootstrap glyphicons path problems Twitter Bootstrap和Ruby on Rails的警报/错误 - Alerts/Errors with Twitter Bootstrap and Ruby on Rails 在Ruby on Rails中将Fullcalendar与Twitter Bootstrap结合使用 - Using Fullcalendar with Twitter Bootstrap in Ruby on Rails Ruby on Rails:twitter-bootstrap-rails生成一个控制器 - Ruby on Rails : twitter-bootstrap-rails generate a controller 在jQuery更新后,Ruby on Rails / Twitter Bootstrap Popover无法正常工作 - Ruby on Rails/Twitter Bootstrap Popover not working correctly after jQuery update Ruby on Rails:在没有Twitter Bootstrap的情况下更改Flash消息的颜色 - Ruby on rails: Change flash message colour without Twitter Bootstrap 如何将Twitter Bootstrap与Ruby on Rails 3.2.12结合使用? - How do I use Twitter Bootstrap with Ruby on Rails 3.2.12? 在Ruby on Rails 3中使用Twitter Bootstrap图标作为链接的最佳方式? - Best way to use Twitter Bootstrap Icons as Links in Ruby on Rails 3? 使用 form_for 水平显示表单,Ruby on Rails,twitter bootstrap - Display a form horizontally using form_for, Ruby on Rails, twitter bootstrap
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM