本文主要是介绍安装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 CurrentDload 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
这篇关于安装cocopods时失败,更新ruby到2.2.2失败原因的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!