2011-04-17 131 views
0

我想在朋友的Mac上安装libusb-devel使用Macports(我们需要它来安装Osceleton)。在我的电脑上,安装过程非常顺利,但我在安装时遇到困难。从Macports安装cURL失败

libusb-devel的依赖关系之一是curl。但是,安装curl似乎失败。在配置curl期间,显示一条错误消息,安装程序退出。我提到的日志,其中,这是错误的相关部分:

:info:configure configure: found both libz and libz.h header 
:info:configure checking for "/dev/urandom"... configure: error: cannot check for file existence when cross compiling 
:info:configure shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/work/curl-7.21.4-ppc" && ./configure --prefix=/opt/local --disable-dependency-tracking --disable-dependency-tracking --enable-ipv6 --without-gnutls --without-gssapi --without-librtmp --without-libssh2 --without-nss --without-polarssl --without-spnego --with-ssl --disable-ares --disable-ldap --disable-ldaps --with-libidn --with-zlib=/opt/local --disable-dependency-tracking --with-ca-bundle=/opt/local/share/curl/curl-ca-bundle.crt --host=powerpc-apple-darwin10.7.0 " returned error 1 
:error:configure Target org.macports.configure returned: configure failure: shell command failed (see log for details) 
:debug:configure Backtrace: configure failure: shell command failed (see log for details) 
    while executing 
"$procedure $targetname" 
:info:configure Warning: the following items did not execute (for curl): org.macports.destroot org.macports.configure org.macports.build 
:notice:configure Log for curl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_net_curl/main.log 

如果我运行配置脚本自己,使用日志中给出的命令,一切顺利,并curl是完全安装。然而,Macports对此并不满意,因为我得到的错误告诉我某些文件已经存在等。另外,直接使用Macports安装curl似乎给了麻烦。

因此,我无法继续安装libusb-devel,我们很快就需要一个学校项目。谁能帮忙?

TIA

+0

此问题不属于此处。试试apple.stackexchange.com或者superuser.com吧。 – chmullig 2011-04-17 19:17:12

+0

请包括日志文件...你还在使用什么OS X版本? (当然,从我的Mac上的MacPorts安装curl就好了,所以我不认为这个端口坏了。) – 2011-04-17 19:17:47

+0

[logfile](http://pastebin.com/2XAMHv5M)。在Max OS X 10.6.6上。 – Frankie 2011-04-17 19:35:57

回答

0

看起来MacPorts的认为这是交叉编译为PowerPC。确保你已经安装了正确版本的MacPorts。如果你没有使用MacPorts作为其他任何东西,只需吹开/opt/local并从here安装。

+0

你说得对。重新安装Macports的伎俩。非常感谢 – Frankie 2011-04-17 22:35:56