【发布时间】:2011-04-17 19:14:47
【问题描述】:
我正在尝试在朋友的 Mac 上使用 Macports 安装 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
如果我自己运行配置脚本,使用日志中给出的命令,一切顺利,curl 已完美安装。但是,Macports 对此并不满意,因为我收到错误消息,告诉我某些文件已经存在等。另外,直接使用 Macports 安装 curl 似乎会带来麻烦。
因此,我无法继续安装libusb-devel,我们很快就需要它用于学校项目。有人可以帮忙吗?
TIA
【问题讨论】:
-
这个问题不属于这里。试试 apple.stackexchange.com 或 superuser.com。
-
请包含日志文件...您还使用什么 OS X 版本? (当然 curl 从我的 Mac 上的 MacPorts 安装得很好,所以我不认为端口坏了。)
-
logfile。在 Max OS X 10.6.6 上。
标签: curl macports configure apt libusb