CocoaPots 安装教程
|
$ curl -L https://get.rvm.io | bash -s stable |
$ rvm -v
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
|
$ rvm install 2.0.0 |
LuohandeMacBook-Pro:~ LuohanCC$ rvm install 2.0.0 Searching for binary rubies, this might take some time. No binary rubies available for: osx/10.10/x86_64/ruby-2.0.0-p643. Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies. Checking requirements for osx. Installing requirements for osx. Updating system..... Installing required packages: libyaml, libksba, openssl....... Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date. Requirements installation successful. Installing Ruby from source to: /Users/LuohanCC/.rvm/rubies/ruby-2.0.0-p643, this may take a while depending on your cpu(s)... ruby-2.0.0-p643 - #downloading ruby-2.0.0-p643, this may take a while depending on your connection... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10.2M 100 10.2M 0 0 14065 0 0:12:45 0:12:45 --:--:-- 14498› ruby-2.0.0-p643 - #extracting ruby-2.0.0-p643 to /Users/LuohanCC/.rvm/src/ruby-2.0.0-p643.... ruby-2.0.0-p643 - #configuring................................................. ruby-2.0.0-p643 - #post-configuration. ruby-2.0.0-p643 - #compiling.................................................................................- ruby-2.0.0-p643 - #installing.............. ruby-2.0.0-p643 - #making binaries executable.. ruby-2.0.0-p643 - #downloading rubygems-2.4.8 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 437k 100 437k 0 0 45532 0 0:00:09 0:00:09 --:--:-- 47175 No checksum for downloaded archive, recording checksum in user configuration. ruby-2.0.0-p643 - #extracting rubygems-2.4.8.... ruby-2.0.0-p643 - #removing old rubygems......... ruby-2.0.0-p643 - #installing rubygems-2.4.8...................... ruby-2.0.0-p643 - #gemset created /Users/LuohanCC/.rvm/gems/ruby-2.0.0-p643@global ruby-2.0.0-p643 - #importing gemset /Users/LuohanCC/.rvm/gemsets/global.gems.................................- ruby-2.0.0-p643 - #generating global wrappers........ ruby-2.0.0-p643 - #gemset created /Users/LuohanCC/.rvm/gems/ruby-2.0.0-p643 ruby-2.0.0-p643 - #importing gemsetfile /Users/LuohanCC/.rvm/gemsets/default.gems evaluated to empty gem list ruby-2.0.0-p643 - #generating default wrappers........ ruby-2.0.0-p643 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake). Install of ruby-2.0.0-p643 - #complete Ruby was built without documentation, to build it run: rvm docs generate-ri |
$ rvm 2.0.0 --default |
$ sudo gem install cocoapods |
$ gem sources --remove https://rubygems.org/
$ gem sources -a http://ruby.taobao.org/
|
$ gem sources -l |