安装cocopods时失败,更新ruby到2.2.2失败原因

安装cocopods时失败,更新ruby到2.2.2失败原因

今天安装cocopods失败了,终端上说ruby的版本太低了了需要更新到ruby2.2.2版本

http://blog.csdn.net/lissdy/article/details/9191351

看上面这个网站更新ruby到指定版本,然后就报错了下面是错误代码

错误代码

Error running 'requirements_osx_brew_libs_install autoconf automake libtool pkg-config libyaml readline libksba openssl',
showing last 15 lines of /Users/junge/.rvm/log/1477380049_ruby-2.3.0/package_install_autoconf_automake_libtool_pkg-config_libyaml_readline_libksba_openssl.log
++ case "$1" in
++ [[ -t 1 ]]
++ return 1
++ printf %b 'There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation\n'
There were package installation errors, make sure to read the log.

Try `brew tap --repair` and make sure `brew doctor` looks reasonable.

Check Homebrew requirements https://github.com/Homebrew/homebrew/wiki/Installation
++ case "$_system_version" in
++ return 1
Requirements installation failed with status: 1.

在stackoverflow上面找了好久终于找到类似的答案,可能就是网络的问题,因为下载ruby的时候要下载相关的包

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.
ruby-2.2.2 - #configure
ruby-2.2.2 - #download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 6854k  100 6854k    0     0  11540      0  0:10:08  0:10:08 --:--:-- 74959
ruby-2.2.2 - #validate archive
ruby-2.2.2 - #extract
ruby-2.2.2 - #validate binary
ruby-2.2.2 - #setup
ruby-2.2.2 - #gemset created /Users/junge/.rvm/gems/ruby-2.2.2@global
ruby-2.2.2 - #importing gemset /Users/junge/.rvm/gemsets/global.gems..................-
ruby-2.2.2 - #generating global wrappers........
ruby-2.2.2 - #gemset created /Users/junge/.rvm/gems/ruby-2.2.2
ruby-2.2.2 - #importing gemsetfile /Users/junge/.rvm/gemsets/default.gems evaluated to empty gem list
ruby-2.2.2 - #generating default wrappers........
Updating certificates in '/etc/openssl/cert.pem'.
mkdir: /etc/openssl: Permission denied
mkdir -p "/etc/openssl" failed, retrying with sudo
junge password required for 'mkdir -p /etc/openssl': 
and sudo mkdir worked
jungedeMac-mini:~ junge$ ruby -v
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]
jungedeMac-mini:~ junge$ 

给大家推荐一个macvpn下载地址,可以免费使用,但是好像要注册。简单注册就能能用了。
http://www.vpn123.co/download

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值