[!] /usr/bin/curl -f -L -o /var/folders/dj/yccslvys6tb53k2vz87djfsh0000gn/T/d20170219-12508-z77a4l/file.zip https://github.com/kylefleming/opencv/releases/download/3.1.0-ios-fix/opencv2.fram 或者 ssl證書問題ios
參考網址: https://ruby.taobao.orggit
$ gem sources --add https://gems.ruby-china.org/ --remove https://rubygems.org/
$ gem sources -l *** CURRENT SOURCES *** https://gems.ruby-china.org # 請確保只有 gems.ruby-china.org $ gem install rails
$ bundle config mirror.https://rubygems.org https://gems.ruby-china.org
****關鍵:
$ sed -i .bak -E 's!https?://cache.ruby-lang.org/pub/ruby!https://ruby.taobao.org/mirrors/ruby!'
$rvm_path/config/db
問題:
/Library/Ruby/Site/2.0.0/rubygems.rb:270:in `find_spec_for_exe': can't find gem cocoapods (>= 0.a) (Gem::GemNotFoundException) from /Library/Ruby/Site/2.0.0/rubygems.rb:298:in `activate_bin_path' from /usr/local/bin/pod:22:in `<main>'
參考:http://www.jianshu.com/p/700d2cce348c1.$ sudo gem uninstall cocoapods (移除原來的cocoapods) 2.$ sudo gem install -n/usr/local/bin cocoapods (在osx10.11.5中,安裝cocoapods) 3.$ gem sources -l 4. 若是不是https://ruby.taobao.org/就更換爲: $ gem sources --remove https://rubygems.org/ (移除數據源) $ gem sources -a https://ruby.taobao.org/ (更換數據源) $ gem sources -l (查看數據源) 5.$ pod setup (開始安裝)