2
我試圖在Mac OSX Lion上安裝Twitter-Bootstrap-Rails gem。我將twitter-bootsrap行添加到了我的Gemfile中,但是當我運行bundle install時,由於therubyracer gem的問題而失敗。由於therubyracer的依賴性,Rails Twitter Bootstrap gem失敗的bundle安裝?
....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。
任何想法爲什麼編譯器可能會失敗這個寶石安裝或我可以修復?
這大概[答案] [1]會爲你 [1]的工作:http://stackoverflow.com/questions/9421410/telling-bundler-to-exclude-certain-gems-from -a-particular-gems-installation/9422630#9422630 – rogeliog
您是否安裝了Xcode命令行工具?該錯誤消息通常包含對可能有用的日誌文件的引用。 –
@Andrew Marshall我確實安裝了Xcode命令行工具 - 我甚至重新安裝了,但沒有運氣。 –