2016/07/31  安装cocoapods 失败 原因:ruby 环境版本必须大雨2.2 --> 更新到2.3后重新安装

Last login: Sun Jul 31 08:36:30 on ttys000

mcdeMacBook-Pro:~ wufuzeng$ gem sources

*** CURRENT SOURCES ***


https://rubygems.org/

https://ruby.taobao.org/

mcdeMacBook-Pro:~ wufuzeng$ sudo gem sources --remove https://rubygems.org/

Password:

https://rubygems.org/ removed from sources

mcdeMacBook-Pro:~ wufuzeng$ sudo gem intall cocoapods

Password:

ERROR:  While executing gem ... (Gem::CommandLineError)

    Unknown command intall

mcdeMacBook-Pro:~ wufuzeng$ sudo gem install cocoapods

Fetching: i18n-0.7.0.gem (100%)

Successfully installed i18n-0.7.0

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: minitest-5.9.0.gem (100%)

Successfully installed minitest-5.9.0

Fetching: concurrent-ruby-1.0.2.gem (100%)

Successfully installed concurrent-ruby-1.0.2

Fetching: activesupport-5.0.0.gem (100%)

ERROR:  Error installing cocoapods:

activesupport requires Ruby version >= 2.2.2.

mcdeMacBook-Pro:~ wufuzeng$  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    224      0 --:--:-- --:--:-- --:--:--   224

100 22865  100 22865    0     0  11954      0  0:00:01  0:00:01 --:--:--  156k

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


curl: (56) SSLRead() return error -9806


Could not download 'https://github.com/rvm/rvm/archive/1.27.0.tar.gz'.

  curl returned status '56'.


Downloading https://bitbucket.org/mpapis/rvm/get/1.27.0.tar.gz

Downloading https://bitbucket.org/mpapis/rvm/downloads/1.27.0.tar.gz.asc

Found PGP signature at: 'https://bitbucket.org/mpapis/rvm/downloads/1.27.0.tar.gz.asc',

but no GPG software exists to validate it, skipping.


Installing RVM to /Users/mc/.rvm/

    Adding rvm PATH line to /Users/mc/.profile /Users/mc/.mkshrc /Users/mc/.bashrc /Users/mc/.zshrc.

    Adding rvm loading line to /Users/mc/.profile /Users/mc/.bash_profile /Users/mc/.zlogin.

Installation of RVM in /Users/mc/.rvm/ is almost complete:


  * To start using RVM you need to run `source /Users/mc/.rvm/scripts/rvm`

    in all your open shell windows, in rare cases you need to reopen all shell windows.


# wufuzeng,

#

#   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/help and https://twitter.com/rvm_io

mcdeMacBook-Pro:~ wufuzeng$ 

mcdeMacBook-Pro:~ wufuzeng$ source /Users/mc/.rvm

-bash: source: /Users/mc/.rvm: is a directory

mcdeMacBook-Pro:~ wufuzeng$ source /Users/mc/.rvm/scripts/rvm

mcdeMacBook-Pro:~ wufuzeng$ source ~/.bashrc

mcdeMacBook-Pro:~ wufuzeng$ source ~/.bash_profile

mcdeMacBook-Pro:~ wufuzeng$ rvm -v

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

mcdeMacBook-Pro:~ wufuzeng$ rvm reload

RVM reloaded!

mcdeMacBook-Pro:~ wufuzeng$ rvm -v

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

mcdeMacBook-Pro:~ wufuzeng$ ruby -v

ruby 2.0.0p645 (2015-04-13 revision 50299) [universal.x86_64-darwin15]

mcdeMacBook-Pro:~ wufuzeng$ 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

mcdeMacBook-Pro:~ wufuzeng$ rvm install 2.3

Searching for binary rubies, this might take some time.

No binary rubies available for: osx/10.11/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/Library/...

/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

==> The following directories will be made group writable:

/usr/local/.

==> The following directories will have their owner set to wufuzeng:

/usr/local/.

==> The following directories will have their group set to admin:

/usr/local/.


Press RETURN to continue or any other key to abort

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/.

Password:

==> /usr/bin/sudo /usr/sbin/chown wufuzeng /usr/local/.

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/.

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

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

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

==> Downloading and installing Homebrew...

remote: Counting objects: 531, done.

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

remote: Total 531 (delta 31), reused 334 (delta 29), pack-reused 0

Receiving objects: 100% (531/531), 797.61 KiB | 301.00 KiB/s, done.

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

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

 * [new branch]      master     -> origin/master

HEAD is now at 12e7a08 test_cleaner: add perl removal tests

==> Tapping homebrew/core

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

remote: Counting objects: 3716, done.

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

remote: Total 3716 (delta 15), reused 1926 (delta 4), pack-reused 0

Receiving objects: 100% (3716/3716), 2.88 MiB | 465.00 KiB/s, done.

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

Checking connectivity... done.

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

Tapped 3594 formulae (3,742 files, 8.9M)

==> Installation successful!

==> Next steps

Run `brew help` to get started

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

==> Homebrew has enabled anonymous aggregate user behaviour analytics

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

  https://git.io/brew-analytics

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/mc/.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   445k      0  0:00:31  0:00:31 --:--:--  484k

ruby-2.3.0 - #extracting ruby-2.3.0 to /Users/mc/.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/mc/.rvm/gems/ruby-2.3.0@global

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

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

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

ruby-2.3.0 - #importing gemsetfile /Users/mc/.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

mcdeMacBook-Pro:~ wufuzeng$ 

mcdeMacBook-Pro:~ wufuzeng$ gem sources

*** CURRENT SOURCES ***


https://ruby.taobao.org/

mcdeMacBook-Pro:~ wufuzeng$ sudo gem install cocoapods

Password:

Fetching: i18n-0.7.0.gem (100%)

Successfully installed i18n-0.7.0

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: concurrent-ruby-1.0.2.gem (100%)

Successfully installed concurrent-ruby-1.0.2

Fetching: activesupport-5.0.0.gem (100%)

Successfully installed activesupport-5.0.0

Fetching: nap-1.1.0.gem (100%)

Successfully installed nap-1.1.0

Fetching: fuzzy_match-2.0.4.gem (100%)

Successfully installed fuzzy_match-2.0.4

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

Successfully installed cocoapods-core-1.0.1

Fetching: claide-1.0.0.gem (100%)

Successfully installed claide-1.0.0

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

Successfully installed cocoapods-deintegrate-1.0.0

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

Successfully installed cocoapods-downloader-1.1.0

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

Successfully installed cocoapods-plugins-1.0.0

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

Successfully installed cocoapods-search-1.0.0

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

Successfully installed cocoapods-stats-1.0.0

Fetching: netrc-0.7.8.gem (100%)

Successfully installed netrc-0.7.8

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

Successfully installed cocoapods-trunk-1.0.0

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

Successfully installed cocoapods-try-1.1.0

Fetching: molinillo-0.4.5.gem (100%)

Successfully installed molinillo-0.4.5

Fetching: colored-1.2.gem (100%)

Successfully installed colored-1.2

Fetching: xcodeproj-1.2.0.gem (100%)

Successfully installed xcodeproj-1.2.0

Fetching: escape-0.0.4.gem (100%)

Successfully installed escape-0.0.4

Fetching: fourflusher-0.3.2.gem (100%)

Successfully installed fourflusher-0.3.2

Fetching: cocoapods-1.0.1.gem (100%)

Successfully installed cocoapods-1.0.1

Parsing documentation for i18n-0.7.0

Installing ri documentation for i18n-0.7.0

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 concurrent-ruby-1.0.2

Installing ri documentation for concurrent-ruby-1.0.2

Parsing documentation for activesupport-5.0.0

Installing ri documentation for activesupport-5.0.0

Parsing documentation for nap-1.1.0

Installing ri documentation for nap-1.1.0

Parsing documentation for fuzzy_match-2.0.4

Installing ri documentation for fuzzy_match-2.0.4

Parsing documentation for cocoapods-core-1.0.1

Installing ri documentation for cocoapods-core-1.0.1

Parsing documentation for claide-1.0.0

Installing ri documentation for claide-1.0.0

Parsing documentation for cocoapods-deintegrate-1.0.0

Installing ri documentation for cocoapods-deintegrate-1.0.0

Parsing documentation for cocoapods-downloader-1.1.0

Installing ri documentation for cocoapods-downloader-1.1.0

Parsing documentation for cocoapods-plugins-1.0.0

Installing ri documentation for cocoapods-plugins-1.0.0

Parsing documentation for cocoapods-search-1.0.0

Installing ri documentation for cocoapods-search-1.0.0

Parsing documentation for cocoapods-stats-1.0.0

Installing ri documentation for cocoapods-stats-1.0.0

Parsing documentation for netrc-0.7.8

Installing ri documentation for netrc-0.7.8

Parsing documentation for cocoapods-trunk-1.0.0

Installing ri documentation for cocoapods-trunk-1.0.0

Parsing documentation for cocoapods-try-1.1.0

Installing ri documentation for cocoapods-try-1.1.0

Parsing documentation for molinillo-0.4.5

Installing ri documentation for molinillo-0.4.5

Parsing documentation for colored-1.2

Installing ri documentation for colored-1.2

Parsing documentation for xcodeproj-1.2.0

Installing ri documentation for xcodeproj-1.2.0

Parsing documentation for escape-0.0.4

Installing ri documentation for escape-0.0.4

Parsing documentation for fourflusher-0.3.2

Installing ri documentation for fourflusher-0.3.2

Parsing documentation for cocoapods-1.0.1

Installing ri documentation for cocoapods-1.0.1

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

23 gems installed

mcdeMacBook-Pro:~ wufuzeng$ pod

Usage:


    $ pod COMMAND


      CocoaPods, the Cocoa library package manager.


Commands:


    + cache         Manipulate the CocoaPods cache

    + deintegrate   Deintegrate CocoaPods from your project

    + env           Display pod environment

    + init          Generate a Podfile for the current directory

    + install       Install project dependencies according to versions from a

                    Podfile.lock

    + ipc           Inter-process communication

    + lib           Develop pods

    + list          List pods

    + outdated      Show outdated project dependencies

    + plugins       Show available CocoaPods plugins

    + repo          Manage spec-repositories

    + search        Search for pods

    + setup         Setup the CocoaPods environment

    + spec          Manage pod specs

    + trunk         Interact with the CocoaPods API (e.g. publishing new specs)

    + try           Try a Pod!

    + update        Update outdated project dependencies and create new

                    Podfile.lock


Options:


    --silent        Show nothing

    --version       Show the version of the tool

    --verbose       Show more debugging information

    --no-ansi       Show output without ANSI codes

    --help          Show help banner of specified command

mcdeMacBook-Pro:~ wufuzeng$ 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值