从Macports安装cURL失败

时间:2011-04-17 19:14:47

标签: curl macports configure apt libusb

我正在尝试使用Macports在朋友的Mac上安装libusb-devel(我们需要它才能安装Osceleton)。在我的电脑上,安装工作非常顺利,但我在安装它的时候卡住了。

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

如果我自己运行configure-script,使用日志中给出的命令,一切顺利,curl已完美安装。但是,Macports对此并不满意,因为我收到错误告诉我某些文件已经存在等等。另外,使用Macports直接安装curl似乎会给您带来麻烦。

因此,我无法继续安装libusb-devel,我们很快就需要学校项目。有人可以帮忙吗?

TIA

1 个答案:

答案 0 :(得分:0)

看起来MacPorts认为它正在为PowerPC进行交叉编译。确保您安装了正确版本的MacPorts。如果您没有使用MacPorts进行其他操作,只需吹掉/opt/local并从here安装。