由于therubyracer依赖,Rails Twitter Bootstrap gem失败了捆绑安装?

时间:2012-05-17 23:01:11

标签: ruby-on-rails ruby twitter-bootstrap

我正在尝试在Mac OSX Lion上安装Twitter-Bootstrap-Rails gem。我将twitter-bootsrap行添加到我的Gemfile中,但是当我运行bundle install时,由于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.

我已经运行了开发人员工具,以及XCode 4.3.2。我正在运行Rails 3.2和Ruby 1.9.2p318。

任何想法为什么编译器可能会失败这个gem安装或我如何修复?

1 个答案:

答案 0 :(得分:-2)

gem install therubyracer

gem 'therubyracer'

在linux上为我工作。

相关问题