从 Macports 安装 cURL 失败

发布于 2024-11-02 02:47:06 字数 1881 浏览 5 评论 0原文

我正在尝试在朋友的 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

I'm trying to install libusb-devel using Macports on a friend's Mac (we need it in order to install Osceleton). On my computer, the installation went perfectly well, but I'm stuck while installing it on his.

One of the dependencies of libusb-devel is curl. However, installing curl seems to fail. During the configuration of curl, an error message is shown and the installation quits. I'm referred to the log, where this is the relevant part for the error:

: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

If I run the configure-script myself, using the command given in the log, all goes well and curl is perfectly installed. However, Macports is not happy with this, because I get errors telling me that certain files already exist etc. Also, installing curl directly using Macports seems to give trouble.

Because of this, I can't continue the installation of libusb-devel, and we need it quite soon for a school project. Can anyone help?

TIA

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

方觉久 2024-11-09 02:47:06

看起来 MacPorts 认为它​​是针对 PowerPC 的交叉编译。确保您安装了正确版本的 MacPorts。如果您不将 MacPorts 用于其他用途,只需删除 /opt/local 并从 此处

Looks like MacPorts thinks it's cross-compiling for PowerPC. Make sure you've got the right version of MacPorts installed. If you're not using MacPorts for anything else, just blow away /opt/local and install from here.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文