安裝更新,我想設置的CocoaPods到我的iPhone應用程序但是,當我去命令:得到錯誤設立可可豆莢和Ruby的
sudo gem update --system
我得到錯誤:最新版本當前安裝。中止。
當我進入下一步驟的的CocoaPods:
sudo gem install cocoapods
我得到的錯誤在Mac OS 10.8.5:
ERROR: Error installing cocoapods:
cocoapods-trunk requires Ruby version >= 2.0.0.
我試圖在Mac OS 10.9.4和獲得相同的錯誤:
ERROR: Could not find a valid gem 'cocoapods' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - Errno::ECONNREFUSED: Connection refused - connect(2) (https://rubygems.org/latest_specs.4.8.gz)
當試圖安裝Ruby和RVM,我得到錯誤:RVM採購線沒有找到巖組,重新運行ŧ他用'--auto-dotfiles'標誌修復它的命令。並警告:*警告:您有'〜/ .profile'文件,您可能需要加載它, 可以將以下行添加到'/Users/sharmas7/.bash_profile': source〜/ .profile和錯誤的紅寶石:沒有二進制紅寶石可用:osx/10.8/x86_64/ruby-2.0.0-p598 – 2015-03-11 09:27:37