Ruby 在mac上安装CoCoapod失败
我试图按照说明在mac上安装cocoapods,但错误如下:Ruby 在mac上安装CoCoapod失败,ruby,gem,rake,cocoapods,Ruby,Gem,Rake,Cocoapods,我试图按照说明在mac上安装cocoapods,但错误如下: $sudo gem install cocoapods ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError) bad response Service Unavailable: Back-end server is at capacity 503 (https://api.rubygems.org/api/v1/dependencies?gems
$sudo gem install cocoapods
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
bad response Service Unavailable: Back-end server is at capacity 503 (https://api.rubygems.org/api/v1/dependencies?gems=cocoapods)
但有时,错误消息是不同的
$ sudo gem install cocoapods
Password:
Building native extensions. This could take a while...
ERROR: Error installing cocoapods:
ERROR: Failed to build gem native extension.
rake RUBYARCHDIR=/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/xcodeproj-0.17.0 RUBYLIBDIR=/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/xcodeproj-0.17.0/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:298:in `to_specs': Could not find 'rake' (>= 0) among 20 total gem(s) (Gem::LoadError)
from /Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/dependency.rb:309:in `to_spec'
from /Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site_ruby/1.9.1/rubygems/core_ext/kernel_gem.rb:53:in `gem'
from /Users/tap4fun/.rvm/gems/ruby-1.9.3-p484/bin/rake:22:in `<main>'
from /Users/tap4fun/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `eval'
from /Users/tap4fun/.rvm/gems/ruby-1.9.3-p484/bin/ruby_executable_hooks:15:in `<main>'
rake failed, exit code 1
Gem files will remain installed in /Users/tap4fun/.rvm/rubies/ruby-1.9.3- p484/lib/ruby/gems/1.9.1/gems/xcodeproj-0.17.0 for inspection.
Results logged to /Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/xcodeproj-0.17.0/gem_make.out
$sudo gem安装cocoapods
密码:
构建本机扩展。这可能需要一段时间。。。
错误:安装CoCoapod时出错:
错误:无法生成gem本机扩展。
rake rubyachdir=/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/xcodeproj-0.17.0RUBYLIBDIR=/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/xcodeproj-0.17.0/Users/tap4fun/.rvm/rubies/rubies/1.9.3-p484/lib/ruby/site\u-ruby/1.9.1/rubygems/dependency.rb:298:in‘to_规格’:在20个总错误中找不到‘rake’(>0)(gem::gem)
from/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site\u ruby/1.9.1/rubygems/dependency.rb:309:in'to_spec'
from/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site\u ruby/1.9.1/rubygems/core\u ext/kernel\u gem.rb:53:in'gem'
from/Users/tap4fun/.rvm/gems/ruby-1.9.3-p484/bin/rake:22:in`'
from/Users/tap4fun/.rvm/gems/ruby-1.9.3-p484/bin/ruby\u executable\u hooks:15:in'eval'
来自/Users/tap4fun/.rvm/gems/ruby-1.9.3-p484/bin/ruby_可执行_hooks:15:in`'
rake失败,退出代码1
Gem文件仍将安装在/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/gems/xcodeproj-0.17.0中,以供检查。
结果记录到/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/gems/1.9.1/extensions/x86_64-darwin-12/1.9.1/xcodeproj-0.17.0/gem_make.out
ruby版本:1.9.3
rake版本:10.2.2试试这个(在OSX 10.10中为我工作)
运行
pod--version
验证您是否在OSX Yosemite上?是的,版本是10.9.3它不工作,错误:安装xcodeproj时出错:错误:无法构建gem本机扩展。/Users/tap4fun/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/site\u ruby/1.9.1/rubygems/dependency.rb:298:'to_specs':找不到“rake”(>=0)在总共20个gem(gem::LoadError)中,好的,你有和我一样的问题。。。因此,首先将其输入到终端:ruby-e“$(curl-fsSL)”中,然后我该怎么办?$brew安装postgresql安装postgresql时遇到错误,错误:Homebrew不知道Xcode(6.0)版本附带的编译器版本。请brew update
,如果没有帮助,请在brew--config
的输出中提交一个问题:请注意,我们只跟踪稳定的、已发布的Xcode版本。