0
我试图捆绑安装一个应用程序,并且它一直停留在路边宝石上。这里是的Gemfile:我不能在Mac OS Lion上安装Ruby Gem'curb'
source :rubygems
gem 'sinatra', '~>1.0'
gem 'yajl-ruby', '~>0.7.8'
gem 'mustache', '~>0.11.2'
gem 'curb', '~>0.7.8'
gem 'coderay', '~>0.8.357'
gem 'sinatra_auth_github'
group :test do
gem 'shotgun'
end
这里是错误:
steven-gallaghers-macbook-pro:hurl sgallagher$ bundle install
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://rubygems.org/..
Using addressable (2.2.2)
Using coderay (0.8.357)
Installing curb (0.7.8) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
/Users/sgallagher/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/installer.rb:552:in `rescue in block in build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)
/Users/sgallagher/.rvm/rubies/ruby-1.9.2-p290/bin/ruby extconf.rb
"$(cflags) -fno-common -pipe"
checking for curl-config... yes
checking for curlinfo_redirect_time... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/Users/sgallagher/.rvm/rubies/ruby-1.9.2-p290/bin/ruby
--with-curl-dir
--without-curl-dir
--with-curl-include
--without-curl-include=${curl-dir}/include
--with-curl-lib
--without-curl-lib=${curl-dir}/lib
/Users/sgallagher/.rvm/rubies/ruby-1.9.2-p290/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.
from /Users/sgallagher/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/mkmf.rb:446:in `try_compile'
from extconf.rb:52:in `block in have_constant'
有什么想法?
我已经安装了xcode。至少我认为我有。我可以打开xcode应用程序,甚至开始使用它。这不是说它的安装?奇怪的问题,我知道,但在寻找答案时,我在几篇文章中看到,说你必须安装它,但上述事实和它在应用商店中的安装时会显示出来,这表明它确实已安装。 – 2012-02-21 22:28:21
可能与安装时需要确认“unix开发支持”是否被检查有关? http://stackoverflow.com/questions/2685887/where-is-gcc-on-osx-i-have-installed-xcode-already – David 2012-02-21 22:44:51
感谢您的回应。你连接的问题有一个人从CD安装的情况。我直接从App Store安装...没有选择选项或复选框来选中或取消选中。它只是安装,就是这样。 – 2012-02-21 22:49:54