这是我的终端在尝试使用RVM在Macbook Pro,OS X Lion 10.7.5上安装Ruby时使用命令行工具,XCode和Homebrew更新Ruby的消息。
Error running 'requirements_osx_port_libs_install autoconf automake libtool pkgconfig apple-gcc42 libiconv libyaml libffi readline libksba openssl curl-ca-bundle sqlite3 zlib gdbm ncurses',
please read /Users/ADMIN/.rvm/log/1378814732_ruby-2.0.0-p247/package_install_autoconf_automake_libtool_pkgconfig_apple-gcc42_libiconv_libyaml_libffi_readline_libksba_openssl_curl-ca-bundle_sqlite3_zlib_gdbm_ncurses.log
Requirements installation failed with status: 1.
以下是日志文件的结果:
[2013-09-10 07:34:31] requirements_osx_port_libs_install
requirements_osx_port_libs_install ()
{
__rvm_try_sudo port install "$@" || {
typeset ret=$?;
rvm_warn "There were package installation errors, make sure to read the log.";
return $ret
}
}
current path: /Users/ADMIN/.rvm/src/rvm
command(17): requirements_osx_port_libs_installautoconf automake libtool pkgconfig apple-gcc42 libiconv libyaml libffi readline libksba openssl curl-ca-bundle sqlite3 zlib gdbm ncurses
---> Computing dependencies for autoconf
---> Dependencies to be installed: help2man gettext expat libiconv gperf ncurses p5.12-locale-gettext perl5.12 gdbm m4 perl5 xz
---> Fetching distfiles for expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://superb-dca3.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://superb-dca2.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://sea.us.distfiles.macports.org/macports/distfiles/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://distfiles.macports.org/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://iweb.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://lil.fr.distfiles.macports.org/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://heanet.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://switch.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://citylan.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://jaist.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://nchc.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://aarnet.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://internode.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://jog.id.distfiles.macports.org/macports/mpdistfiles/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://cjj.kr.distfiles.macports.org/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://waix.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://freefr.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://garr.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://ignum.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://netcologne.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://tenet.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://ufpr.dl.sourceforge.net/project/expat/expat/2.1.0
---> Attempting to fetch expat-2.1.0.tar.gz from http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/expat
---> Attempting to fetch expat-2.1.0.tar.gz from http://svn.macports.org/repository/macports/distfiles/expat
Error: org.macports.fetch for port expat returned: fetch failed
Error: Failed to install expat
Please see the log file for port expat for details:
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log
Error: The following dependencies were not installed: help2man gettext expat libiconv gperf ncurses p5.12-locale-gettext perl5.12 gdbm m4 perl5 xz
To report a bug, follow the instructions in the guide:
http://guide.macports.org/#project.tickets
Error: Processing of port autoconf failed
There were package installation errors, make sure to read the log.
有什么想法吗?外籍?
答案 0 :(得分:0)
你的rvm或自制软件安装有什么用(你安装了自制软件吗?)。尝试rvm get head
和brew doctor
,然后按照说明更新内容。
答案 1 :(得分:0)
我的猜测是这条线很重要:
Error: org.macports.fetch for port expat returned: fetch failed
很明显,代码试图通过一堆镜像搜索该文件。我刚才做的快速抽查显示该文件可以在一堆网站上找到,所以也许你的网络连接搞砸了。
require 'httpclient'
clnt = HTTPClient.new
%w[
http://superb-dca3.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://superb-dca2.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://sea.us.distfiles.macports.org/macports/distfiles/expat/expat-2.1.0.tar.gz
http://distfiles.macports.org/expat/expat-2.1.0.tar.gz
http://iweb.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://lil.fr.distfiles.macports.org/expat/expat-2.1.0.tar.gz
http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/expat/expat-2.1.0.tar.gz
http://heanet.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://switch.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://citylan.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://jaist.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://nchc.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://aarnet.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/expat/expat-2.1.0.tar.gz
http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/expat/expat-2.1.0.tar.gz
http://internode.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://jog.id.distfiles.macports.org/macports/mpdistfiles/expat/expat-2.1.0.tar.gz
http://cjj.kr.distfiles.macports.org/expat/expat-2.1.0.tar.gz
http://waix.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://freefr.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://garr.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://ignum.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://netcologne.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://tenet.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://ufpr.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz
http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/expat/expat-2.1.0.tar.gz
http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/expat/expat-2.1.0.tar.gz
http://svn.macports.org/repository/macports/distfiles/expat/expat-2.1.0.tar.gz
].each do |url|
begin
request = clnt.head(url)
rescue Exception => e
puts "Failed reading #{url}: \"#{e.message}\""
next
end
if request.status == 200
puts "#{ url } exists"
else
puts '%s ==> %s' % [url, request.headers['Location']]
end
end
哪个输出:
http://superb-dca3.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz ==> http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz?download&failedmirror=superb-dca3.dl.sourceforge.net
http://superb-dca2.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://sea.us.distfiles.macports.org/macports/distfiles/expat/expat-2.1.0.tar.gz exists
http://distfiles.macports.org/expat/expat-2.1.0.tar.gz exists
http://iweb.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz ==> http://downloads.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz?download&failedmirror=iweb.dl.sourceforge.net
http://lil.fr.distfiles.macports.org/expat/expat-2.1.0.tar.gz exists
http://mse.uk.distfiles.macports.org/sites/distfiles.macports.org/expat/expat-2.1.0.tar.gz exists
http://heanet.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://switch.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://citylan.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://jaist.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://nchc.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://aarnet.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://her.gr.distfiles.macports.org/mirrors/macports/mpdistfiles/expat/expat-2.1.0.tar.gz exists
http://aarnet.au.distfiles.macports.org/pub/macports/mpdistfiles/expat/expat-2.1.0.tar.gz exists
http://internode.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://jog.id.distfiles.macports.org/macports/mpdistfiles/expat/expat-2.1.0.tar.gz exists
http://cjj.kr.distfiles.macports.org/expat/expat-2.1.0.tar.gz exists
http://waix.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://freefr.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://garr.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
Failed reading http://ignum.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz: "execution expired"
http://netcologne.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
Failed reading http://tenet.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz: "getaddrinfo: nodename nor servname provided, or not known (http://tenet.dl.sourceforge.net:80)"
http://ufpr.dl.sourceforge.net/project/expat/expat/2.1.0/expat-2.1.0.tar.gz exists
http://fco.it.distfiles.macports.org/mirrors/macports-distfiles/expat/expat-2.1.0.tar.gz exists
http://ykf.ca.distfiles.macports.org/MacPorts/mpdistfiles/expat/expat-2.1.0.tar.gz exists
http://svn.macports.org/repository/macports/distfiles/expat/expat-2.1.0.tar.gz ==>
答案 2 :(得分:0)
我的错误日志(/.rvm/log)推荐我brew更新但是我收到了错误:
Error: Failure while executing: git pull -q origin refs/heads/master:refs/remotes/origin/master
日志还说:
Failed to update Homebrew, follow instructions here:
https://github.com/mxcl/homebrew/wiki/Common-Issues
and make sure `brew update` works before continuing.
这是母亲!如果您在更新rvm时遇到问题,可能会在此处找到您的答案。在我更新了rvm后,我能够安装ruby。