简体   繁体   中英

Rails Twitter Bootstrap gem failing bundle install due to therubyracer dependency?

I'm trying to install Twitter-Bootstrap-Rails gem on Mac OSX Lion. 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.

....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. I'm running Rails 3.2 and Ruby 1.9.2p318.

Any idea why the compiler might be failing for this gem install or how I can fix?

gem install therubyracer

or

gem 'therubyracer'

works for me on linux.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM