系统升级后由于Ruby版本低导致安装Cocoapods 不成功的解决办法

在macOS Sierra 10.12.1上安装Cocoapods时遇到问题,由于Ruby版本过低,需要更新Ruby。本文详细介绍了通过RVM安装和更新Ruby的步骤,包括安装RVM、解决安装Ruby时的依赖问题,如更新Homebrew,并最终成功安装Cocoapods。通过这些步骤,解决了Ruby版本不足导致的Cocoapods安装失败的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我当前的系统是  macOS  Sierra  版本10.12.1



已经不是第一次安装cocoapods了, 但是今天在自己的mac pro 安装cocoapods 出现了

  Error installing pods:active support requires Ruby version >= 2.2.2


之前安装并没有出现个这个问题, 查了半天资料发现原来是ruby的版本太低了, 需要跟新Ruby. 然后接二连三的坑就出现了.

首先要更新Ruby , 有三种选择
1.下载ruby源代码,编译,安装
2.使用发行版自带的安装包,安装
3.使用 rvm安装

我选择了 rvm安装, 那势必得先安装 rvm

1.RVM:Ruby Version Manager,Ruby版本管理器,包括Ruby的版本管理和Gem库管理(gems)
$ curl -L get.rvm.io | bash -s stable


2.加载文件, 测试是否安装正常(按照提示操作)
$ source ~/.bashrc 

$ source ~/.bash_profile 

$ source ~/.profile$ rvm -v


3.如果有下面的提示, 请reload rvm
A RVM version 1.27.0 (latest) is installed yet 1.25.23 (stable) is loaded.
Please do one of the following:

  • 'rvm reload'
  • open a new shell
  • 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.
  • 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.

输入命令:

$ rvm reload
$ rvm -v


4.查看当前ruby版本 ,获取rvm 列表

$ ruby -v 

$ rvm list known


5.安装ruby可能出的错误 (若未出错, 请跳过进入第6步)

$ rvm install 2.3


4B169ACDB8623A5116B53DA2B24D1F4C.jpg


错误1: 在安装ruby的时候, 可能会如下报错, 提示 Updating system[YourMacName] password required for ‘port -dv self update’

解决:
进行更新:

$ sudo port self update

错误2:
或者你可能遇到如下错误, 原因是需要安装Homebrew.
Error running 'requirements_osx_port_libs_install curl-ca-bundle automake libtool libyaml libffi libksba',showing last 15 lines of /Users/acewill/.rvm/log/1468253599_ruby-2.3.0/package_install_curl-ca-bundle_automake_libtool_libyaml_libffi_libksba.log

解决:
参照stack overflow上的问题Installing RVM: “Requirements installation failed with status: 1.”

需要安装Homebrew , 通过以下命令:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


以下是我经历的完整步骤:


Last login: Thu Nov  3 08:29:57 on ttys000

99-48-58-38:~ wsh$ rvm help mount

Usage:


    rvm automount

    rvm mount /path/to/ruby [-n {name}]

    rvm mount [-r] {https://url/to/ruby.tar.bz2} [name]



## Mounting local compiled rubies


RVM supports adding rubies compiled by user.


If compiled ruby is already on `PATH` then use:


    rvm automount


If ruby is not on `PATH` and was compiled in `/opt/ruby-1.9.3-p194`,

then both following commands will add it to RVM:


    rvm mount /opt/ruby-1.9.3-p194

    rvm mount /opt/ruby-1.9.3-p194/bin/ruby


RVM will ask user for the name for it, for automation you can use `-n` flag:


    rvm mount /opt/ruby-1.9.3-p194 -n ruby-1.9.3-p194


Which will create `ext-ruby-1.9.3-p194`, the `ext-` prefix is there to

distinguish externally compiled rubies.



## Unmounting locally compiled rubies


Remove the ruby as you would any other:


    rvm remove ext-ruby-1.9.3-p194



## Downloading compiled ruby (since RVM 1.16)


RVM also supports downloading compiled rubies.


You can specify the full url to the binaries:


    rvm mount -r https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-1.9.3-p194.tar.bz2


It is also possible to download from different url with a name to use:


    rvm mount -r https://some.server/my_ruby-1.9.3-p194.tar.bz2 ruby-1.9.3-p194


Note that the packaged ruby must be using exactly the name that was given as second parameter.


And finally it is possible to just give a name and RVM will build the path for your system:


    rvm mount -r 1.9.3


Assuming the binary is in proper remote path registered with rvm it will be automatically used during installation:


    rvm install 1.9.3


will use https://rvm.io/binaries/ubuntu/12.04/x86_64/ruby-1.9.3-p194.tar.bz2 assuming it is 64bit Ubuntu 12.04.



## List of available builds


RVM automatically detects current platform and displays rubies available for it:


    rvm list remote



## Preparing your own build of ruby


Read more in:


    rvm help prepare


  For additional information please visit RVM's documentation website:


      https://rvm.io/


  If you still cannot find an answer to your question, find

  'wayneeseguin', 'mpapis', 'richo', 'lemoinem' or 'rys' in #rvm on irc.freenode.net:


      http://webchat.freenode.net/?channels=rvm

  

99-48-58-38:~ wsh$ gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3

-bash: gpg: command not found

99-48-58-38:~ wsh$ \curl -sSL https://get.rvm.io | bash -s stable

curl: (35) Server aborted the SSL handshake

99-48-58-38:~ wsh$ curl -L get.rvm.io | bash -s stable

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   184  100   184    0     0     51      0  0:00:03  0:00:03 --:--:--    51

100 22921  100 22921    0     0   3598      0  0:00:06  0:00:06 --:--:--  9409

Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz

Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc

Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc',

but no GPG software exists to validate it, skipping.


Upgrading the RVM installation in /Users/wsh/.rvm/

    RVM PATH line found in /Users/wsh/.mkshrc /Users/wsh/.profile /Users/wsh/.bashrc /Users/wsh/.zshrc.

    RVM sourcing line found in /Users/wsh/.profile /Users/wsh/.bash_profile /Users/wsh/.zlogin.

Upgrade of RVM in /Users/wsh/.rvm/ is complete.


# wsh,

#

#   Thank you for using RVM!

#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!

#

# ~Wayne, Michal & team.


In case of problems: https://rvm.io/helpandhttps://twitter.com/rvm_io


Upgrade Notes:


  * No new notes to display.


99-48-58-38:~ wsh$ rvm install 2.2.2


RVM version 1.27.0 (latest) is installed yet 1.27.0 (master) is loaded.

Please do one of the following:

  * 'rvm reload'

  * open a new shell

  * 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.

  * 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.


99-48-58-38:~ wsh$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"

Warning: This script will remove:

/Users/wsh/Library/Caches/Homebrew/

/usr/local/Cellar/

/usr/local/Homebrew/

/usr/local/Homebrew/.github/

/usr/local/Homebrew/.gitignore

/usr/local/Homebrew/.travis.yml

/usr/local/Homebrew/.yardopts

/usr/local/Homebrew/CODEOFCONDUCT.md

/usr/local/Homebrew/CONTRIBUTING.md

/usr/local/Homebrew/LICENSE.txt

/usr/local/Homebrew/Library/

/usr/local/Homebrew/README.md

/usr/local/Homebrew/bin/brew

/usr/local/Homebrew/completions/

/usr/local/Homebrew/docs/

/usr/local/Homebrew/manpages/

/usr/local/bin/brew -> /usr/local/Homebrew/bin/brew

/usr/local/etc/bash_completion.d/brew -> /usr/local/Homebrew/completions/bash/brew

/usr/local/share/doc/homebrew -> /usr/local/Homebrew/docs

/usr/local/share/man/man1/brew-cask.1 -> /usr/local/Homebrew/manpages/brew-cask.1

/usr/local/share/man/man1/brew.1 -> /usr/local/Homebrew/manpages/brew.1

/usr/local/share/zsh/site-functions/_brew -> /usr/local/Homebrew/completions/zsh/_brew

/usr/local/share/zsh/site-functions/_brew_cask -> /usr/local/Homebrew/completions/zsh/_brew_cask

/usr/local/var/homebrew/locks/update

Are you sure you want to uninstall Homebrew? [y/N] y

==> Removing Homebrew installation...

==> Removing empty directories...

==> /usr/bin/sudo /usr/bin/find /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/var -name .DS_Store -delete

Password:

==> /usr/bin/sudo /usr/bin/find /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/var -depth -type d -empty -exec rmdir {} ;

==> Homebrew uninstalled!

99-48-58-38:~ wsh$ rvm install 2.2.2


RVM version 1.27.0 (latest) is installed yet 1.27.0 (master) is loaded.

Please do one of the following:

  * 'rvm reload'

  * open a new shell

  * 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.

  * 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.


99-48-58-38:~ wsh$ rvm list known


RVM version 1.27.0 (latest) is installed yet 1.27.0 (master) is loaded.

Please do one of the following:

  * 'rvm reload'

  * open a new shell

  * 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.

  * 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.


99-48-58-38:~ wsh$ gem sources --remove https://rubygems.org/

source https://rubygems.org/ not present in cache

99-48-58-38:~ wsh$ gem sources -a https://ruby.taobao.org/

source https://ruby.taobao.org/ already present in the cache

99-48-58-38:~ wsh$ gem sources -l

*** CURRENT SOURCES ***


https://ruby.taobao.org/

99-48-58-38:~ wsh$ sudo gem install cocoapods

Password:

ERROR:  Error installing cocoapods:

activesupport requires Ruby version >= 2.2.2.

99-48-58-38:~ wsh$ ruby -v

ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

99-48-58-38:~ wsh$ rvm list known


RVM version 1.27.0 (latest) is installed yet 1.27.0 (master) is loaded.

Please do one of the following:

  * 'rvm reload'

  * open a new shell

  * 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.

  * 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.


99-48-58-38:~ wsh$ curl -L get.rvm.io | bash -s stable

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current

                                 Dload  Upload   Total   Spent    Left  Speed

100   184  100   184    0     0    332      0 --:--:-- --:--:-- --:--:--   332

100 22921  100 22921    0     0   5632      0  0:00:04  0:00:04 --:--:-- 10587

Downloading https://github.com/rvm/rvm/archive/1.27.0.tar.gz

Downloading https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc

Found PGP signature at: 'https://github.com/rvm/rvm/releases/download/1.27.0/1.27.0.tar.gz.asc',

but no GPG software exists to validate it, skipping.


Upgrading the RVM installation in /Users/wsh/.rvm/

    RVM PATH line found in /Users/wsh/.mkshrc /Users/wsh/.profile /Users/wsh/.bashrc /Users/wsh/.zshrc.

    RVM sourcing line found in /Users/wsh/.profile /Users/wsh/.bash_profile /Users/wsh/.zlogin.

Upgrade of RVM in /Users/wsh/.rvm/ is complete.


# wsh,

#

#   Thank you for using RVM!

#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!

#

# ~Wayne, Michal & team.


In case of problems: https://rvm.io/helpandhttps://twitter.com/rvm_io


Upgrade Notes:


  * No new notes to display.


99-48-58-38:~ wsh$ ruby -v

ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

99-48-58-38:~ wsh$ rvm list known


RVM version 1.27.0 (latest) is installed yet 1.27.0 (master) is loaded.

Please do one of the following:

  * 'rvm reload'

  * open a new shell

  * 'echo rvm_auto_reload_flag=1 >> ~/.rvmrc' # for auto reload with msg.

  * 'echo rvm_auto_reload_flag=2 >> ~/.rvmrc' # for silent auto reload.


99-48-58-38:~ wsh$ rvm reload

RVM reloaded!

99-48-58-38:~ wsh$ rvm -v

rvm 1.27.0 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

99-48-58-38:~ wsh$ ruby -v

ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin16]

99-48-58-38:~ wsh$ rvm list known

# MRI Rubies

[ruby-]1.8.6[-p420]

[ruby-]1.8.7[-head] # security released on head

[ruby-]1.9.1[-p431]

[ruby-]1.9.2[-p330]

[ruby-]1.9.3[-p551]

[ruby-]2.0.0[-p648]

[ruby-]2.1[.8]

[ruby-]2.2[.4]

[ruby-]2.3[.0]

[ruby-]2.2-head

ruby-head


# for forks use: rvm install ruby-head-<name> --url https://github.com/github/ruby.git --branch 2.2


# JRuby

jruby-1.6[.8]

jruby-1.7[.23]

jruby[-9.0.5.0]

jruby-head


# Rubinius

rbx-1[.4.3]

rbx-2.3[.0]

rbx-2.4[.1]

rbx[-2.5.8]

rbx-head


# Opal

opal


# Minimalistic ruby implementation - ISO 30170:2012

mruby[-head]


# Ruby Enterprise Edition

ree-1.8.6

ree[-1.8.7][-2012.02]


# GoRuby

goruby


# Topaz

topaz


# MagLev

maglev[-head]

maglev-1.0.0


# Mac OS X Snow Leopard Or Newer

macruby-0.10

macruby-0.11

macruby[-0.12]

macruby-nightly

macruby-head


# IronRuby

ironruby[-1.1.3]

ironruby-head

99-48-58-38:~ wsh$ rvm install 2.3

Searching for binary rubies, this might take some time.

No binary rubies available for: osx/10.12/x86_64/ruby-2.3.0.

Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.

Checking requirements for osx.

About to install Homebrew, press `Enter` for default installation in `/usr/local`,

type new path if you wish custom Homebrew installation (the path needs to be writable for user)

==> This script will install:

/usr/local/bin/brew

/usr/local/share/doc/homebrew

/usr/local/share/man/man1/brew.1

/usr/local/share/zsh/site-functions/_brew

/usr/local/etc/bash_completion.d/brew

/usr/local/Homebrew

==> The following new directories will be created:

/usr/local/Cellar

/usr/local/Homebrew

/usr/local/Frameworks

/usr/local/bin

/usr/local/etc

/usr/local/include

/usr/local/lib

/usr/local/opt

/usr/local/sbin

/usr/local/share

/usr/local/share/zsh

/usr/local/share/zsh/site-functions

/usr/local/var


Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/mkdir -p /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

Password:

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /bin/chmod 755 /usr/local/share/zsh /usr/local/share/zsh/site-functions

==> /usr/bin/sudo /usr/sbin/chown wsh /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/Cellar /usr/local/Homebrew /usr/local/Frameworks /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/opt /usr/local/sbin /usr/local/share /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var

==> /usr/bin/sudo /bin/mkdir -p /Users/wsh/Library/Caches/Homebrew

==> /usr/bin/sudo /bin/chmod g+rwx /Users/wsh/Library/Caches/Homebrew

==> /usr/bin/sudo /usr/sbin/chown wsh /Users/wsh/Library/Caches/Homebrew

==> Downloading and installing Homebrew...

remote: Counting objects: 3819, done.

remote: Compressing objects: 100% (2576/2576), done.

remote: Total 3819 (delta 1905), reused 2465 (delta 1102), pack-reused 0

Receiving objects: 100% (3819/3819), 2.28 MiB | 27.00 KiB/s, done.

Resolving deltas: 100% (1905/1905), done.

From https://github.com/Homebrew/brew

 * [new branch]      master     -> origin/master

 * [new tag]         0.1        -> 0.1

 * [new tag]         0.2        -> 0.2

 * [new tag]         0.3        -> 0.3

 * [new tag]         0.4        -> 0.4

 * [new tag]         0.5        -> 0.5

 * [new tag]         0.6        -> 0.6

 * [new tag]         0.7        -> 0.7

 * [new tag]         0.7.1      -> 0.7.1

 * [new tag]         0.8        -> 0.8

 * [new tag]         0.8.1      -> 0.8.1

 * [new tag]         0.9        -> 0.9

 * [new tag]         0.9.1      -> 0.9.1

 * [new tag]         0.9.2      -> 0.9.2

 * [new tag]         0.9.3      -> 0.9.3

 * [new tag]         0.9.4      -> 0.9.4

 * [new tag]         0.9.5      -> 0.9.5

 * [new tag]         0.9.8      -> 0.9.8

 * [new tag]         0.9.9      -> 0.9.9

 * [new tag]         1.0.0      -> 1.0.0

 * [new tag]         1.0.1      -> 1.0.1

 * [new tag]         1.0.2      -> 1.0.2

 * [new tag]         1.0.3      -> 1.0.3

 * [new tag]         1.0.4      -> 1.0.4

 * [new tag]         1.0.5      -> 1.0.5

 * [new tag]         1.0.6      -> 1.0.6

 * [new tag]         1.0.7      -> 1.0.7

 * [new tag]         1.0.8      -> 1.0.8

 * [new tag]         1.0.9      -> 1.0.9

HEAD is now at 89fd34b Merge pull request #1368 from MikeMcQuaid/build-options-file

==> Homebrew has enabled anonymous aggregate user behaviour analytics

Read the analytics documentation (and how to opt-out) here:

  https://git.io/brew-analytics

==> Tapping homebrew/core

Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-core'...

remote: Counting objects: 3744, done.

remote: Compressing objects: 100% (3634/3634), done.

remote: Total 3744 (delta 12), reused 318 (delta 1), pack-reused 0

Receiving objects: 100% (3744/3744), 2.99 MiB | 12.00 KiB/s, done.

Resolving deltas: 100% (12/12), done.

Checking connectivity... done.

Checking out files: 100% (3748/3748), done.

Tapped 3623 formulae (3,771 files, 9.3M)

Already up-to-date.

==> Installation successful!

==> Next steps

Run `brew help` to get started

Further documentation: https://git.io/brew-docs

Installing requirements for osx.

Updating system.....

Installing required packages: autoconf, automake, libtool, pkg-config, libyaml, readline, libksba, openssl.........

Certificates in '/usr/local/etc/openssl/cert.pem' are already up to date.

Requirements installation successful.

Installing Ruby from source to: /Users/wsh/.rvm/rubies/ruby-2.3.0, this may take a while depending on your cpu(s)...

ruby-2.3.0 - #downloading ruby-2.3.0, 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 13.5M  100 13.5M    0     0  91522      0  0:02:34  0:02:34 --:--:-- 28090

ruby-2.3.0 - #extracting ruby-2.3.0 to /Users/wsh/.rvm/src/ruby-2.3.0....

ruby-2.3.0 - #configuring......................................................|

ruby-2.3.0 - #post-configuration.

ruby-2.3.0 - #compiling........................................................|

ruby-2.3.0 - #installing.........

ruby-2.3.0 - #making binaries executable..

Installed rubygems 2.5.1 is newer than 2.4.8 provided with installed ruby, skipping installation, use --force to force installation.

ruby-2.3.0 - #gemset created /Users/wsh/.rvm/gems/ruby-2.3.0@global

ruby-2.3.0 - #importing gemset /Users/wsh/.rvm/gemsets/global.gems.............|

ruby-2.3.0 - #generating global wrappers........

ruby-2.3.0 - #gemset created /Users/wsh/.rvm/gems/ruby-2.3.0

ruby-2.3.0 - #importing gemsetfile /Users/wsh/.rvm/gemsets/default.gems evaluated to empty gem list

ruby-2.3.0 - #generating default wrappers........

ruby-2.3.0 - #adjusting #shebangs for (gem irb erb ri rdoc testrb rake).

Install of ruby-2.3.0 - #complete 

Ruby was built without documentation, to build it run: rvm docs generate-ri

99-48-58-38:~ wsh$ sudo gem install cocoapods

Password:

Fetching: nanaimo-0.2.0.gem (100%)

Successfully installed nanaimo-0.2.0

Fetching: colored-1.2.gem (100%)

Successfully installed colored-1.2

Fetching: claide-1.0.1.gem (100%)

Successfully installed claide-1.0.1

Fetching: CFPropertyList-2.3.3.gem (100%)

Successfully installed CFPropertyList-2.3.3

Fetching: thread_safe-0.3.5.gem (100%)

Successfully installed thread_safe-0.3.5

Fetching: tzinfo-1.2.2.gem (100%)

Successfully installed tzinfo-1.2.2

Fetching: i18n-0.7.0.gem (100%)

Successfully installed i18n-0.7.0

Fetching: activesupport-4.2.7.1.gem (100%)

Successfully installed activesupport-4.2.7.1

Fetching: xcodeproj-1.4.1.gem (100%)

Successfully installed xcodeproj-1.4.1

Fetching: nap-1.1.0.gem (100%)

Successfully installed nap-1.1.0

Fetching: molinillo-0.5.3.gem (100%)

Successfully installed molinillo-0.5.3

Fetching: gh_inspector-1.0.2.gem (100%)

Successfully installed gh_inspector-1.0.2

Fetching: fourflusher-2.0.1.gem (100%)

Successfully installed fourflusher-2.0.1

Fetching: escape-0.0.4.gem (100%)

Successfully installed escape-0.0.4

Fetching: cocoapods-try-1.1.0.gem (100%)

Successfully installed cocoapods-try-1.1.0

Fetching: netrc-0.7.8.gem (100%)

Successfully installed netrc-0.7.8

Fetching: cocoapods-trunk-1.1.1.gem (100%)

Successfully installed cocoapods-trunk-1.1.1

Fetching: cocoapods-stats-1.0.0.gem (100%)

Successfully installed cocoapods-stats-1.0.0

Fetching: cocoapods-search-1.0.0.gem (100%)

Successfully installed cocoapods-search-1.0.0

Fetching: cocoapods-plugins-1.0.0.gem (100%)

Successfully installed cocoapods-plugins-1.0.0

Fetching: cocoapods-downloader-1.1.2.gem (100%)

Successfully installed cocoapods-downloader-1.1.2

Fetching: cocoapods-deintegrate-1.0.1.gem (100%)

Successfully installed cocoapods-deintegrate-1.0.1

Fetching: fuzzy_match-2.0.4.gem (100%)

Successfully installed fuzzy_match-2.0.4

Fetching: cocoapods-core-1.1.1.gem (100%)

Successfully installed cocoapods-core-1.1.1

Fetching: cocoapods-1.1.1.gem (100%)

Successfully installed cocoapods-1.1.1

Parsing documentation for nanaimo-0.2.0

Installing ri documentation for nanaimo-0.2.0

Parsing documentation for colored-1.2

Installing ri documentation for colored-1.2

Parsing documentation for claide-1.0.1

Installing ri documentation for claide-1.0.1

Parsing documentation for CFPropertyList-2.3.3

Installing ri documentation for CFPropertyList-2.3.3

Parsing documentation for thread_safe-0.3.5

Installing ri documentation for thread_safe-0.3.5

Parsing documentation for tzinfo-1.2.2

Installing ri documentation for tzinfo-1.2.2

Parsing documentation for i18n-0.7.0

Installing ri documentation for i18n-0.7.0

Parsing documentation for activesupport-4.2.7.1

Installing ri documentation for activesupport-4.2.7.1

Parsing documentation for xcodeproj-1.4.1

Installing ri documentation for xcodeproj-1.4.1

Parsing documentation for nap-1.1.0

Installing ri documentation for nap-1.1.0

Parsing documentation for molinillo-0.5.3

Installing ri documentation for molinillo-0.5.3

Parsing documentation for gh_inspector-1.0.2

Installing ri documentation for gh_inspector-1.0.2

Parsing documentation for fourflusher-2.0.1

Installing ri documentation for fourflusher-2.0.1

Parsing documentation for escape-0.0.4

Installing ri documentation for escape-0.0.4

Parsing documentation for cocoapods-try-1.1.0

Installing ri documentation for cocoapods-try-1.1.0

Parsing documentation for netrc-0.7.8

Installing ri documentation for netrc-0.7.8

Parsing documentation for cocoapods-trunk-1.1.1

Installing ri documentation for cocoapods-trunk-1.1.1

Parsing documentation for cocoapods-stats-1.0.0

Installing ri documentation for cocoapods-stats-1.0.0

Parsing documentation for cocoapods-search-1.0.0

Installing ri documentation for cocoapods-search-1.0.0

Parsing documentation for cocoapods-plugins-1.0.0

Installing ri documentation for cocoapods-plugins-1.0.0

Parsing documentation for cocoapods-downloader-1.1.2

Installing ri documentation for cocoapods-downloader-1.1.2

Parsing documentation for cocoapods-deintegrate-1.0.1

Installing ri documentation for cocoapods-deintegrate-1.0.1

Parsing documentation for fuzzy_match-2.0.4

Installing ri documentation for fuzzy_match-2.0.4

Parsing documentation for cocoapods-core-1.1.1

Installing ri documentation for cocoapods-core-1.1.1

Parsing documentation for cocoapods-1.1.1

Installing ri documentation for cocoapods-1.1.1

Done installing documentation for nanaimo, colored, claide, CFPropertyList, thread_safe, tzinfo, i18n, activesupport, xcodeproj, nap, molinillo, gh_inspector, fourflusher, escape, cocoapods-try, netrc, cocoapods-trunk, cocoapods-stats, cocoapods-search, cocoapods-plugins, cocoapods-downloader, cocoapods-deintegrate, fuzzy_match, cocoapods-core, cocoapods after 18 seconds

25 gems installed

99-48-58-38:~ wsh$ 



参考链接:  https://rvm.io

                    http://blog.csdn.net/fairytale_1/article/details/51850734

                    http://www.jianshu.com/p/e18735560b48



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值