[英]Rails Twitter Bootstrap gem failing bundle install due to therubyracer dependency?
I'm trying to install Twitter-Bootstrap-Rails gem on Mac OSX Lion. 我正在尝试在Mac OSX Lion上安装Twitter-Bootstrap-Rails gem。 I added the twitter-bootsrap line to my Gemfile, but when I run bundle install, it's failing due to an issue with therubyracer gem.
我在我的Gemfile中添加了twitter-bootsrap行,但是当运行捆绑安装时,由于therubyracer gem出现问题,它失败了。
....rvm/rubies/ruby-1.9.2-p318/lib/ruby/1.9.1/mkmf.rb:368:in `try_do': The complier failed to generate an executable file. (RuntimeError)
You have to install development tools first.
I already have developer tools running, and XCode 4.3.2. 我已经在运行开发人员工具和XCode 4.3.2。 I'm running Rails 3.2 and Ruby 1.9.2p318.
我正在运行Rails 3.2和Ruby 1.9.2p318。
Any idea why the compiler might be failing for this gem install or how I can fix? 知道为什么编译器可能无法进行此gem安装或如何修复吗?
gem install therubyracer
or 要么
gem 'therubyracer'
works for me on linux. 在Linux上为我工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.