【问题标题】:Installing cURL from Macports fails从 Macports 安装 cURL 失败
【发布时间】: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


【解决方案1】:

看起来 MacPorts 认为它​​是针对 PowerPC 的交叉编译。确保您安装了正确版本的 MacPorts。如果您没有将 MacPorts 用于其他任何用途,只需吹走 /opt/local 并从 here 安装。

【讨论】:

  • 你是对的。重新安装 Macports 成功了。非常感谢
猜你喜欢
  • 1970-01-01
  • 2014-01-09
  • 1970-01-01
  • 1970-01-01
  • 2011-05-25
  • 2012-12-14
  • 2021-09-05
  • 2016-08-06
  • 1970-01-01
相关资源
最近更新 更多