尝试使用 macports 安装 lighttpd,但出现“升级 openssl 失败”?

尝试使用 macports 安装 lighttpd,但出现“升级 openssl 失败”?

我想使用 macports 安装 lighttpd,但是:

$ sudo port install lighttpd
--->  Computing dependencies for openssl
--->  Building openssl
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for openssl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/main.log
Error: Unable to upgrade port: 1
Error: Unable to execute port: upgrade openssl failed
To report a bug, see <http://guide.macports.org/#project.tickets>

日志的尾部显示:

:info:build collect2: ld returned 1 exit status
:info:build make[4]: *** [link_a.darwin] Error 1
:info:build make[4]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/work/openssl-1.0.0e-i386'
:info:build make[3]: *** [do_darwin-shared] Error 2
:info:build make[3]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/work/openssl-1.0.0e-i386'
:info:build make[2]: *** [libcrypto.1.0.0.dylib] Error 2
:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/work/openssl-1.0.0e-i386'
:info:build make[1]: *** [shared] Error 2
:info:build make[1]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/work/openssl-1.0.0e-i386/crypto'
:info:build make: *** [build_crypto] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/work/openssl-1.0.0e-i386'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/work/openssl-1.0.0e-i386" && /usr/bin/make -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"$procedure $targetname"
:info:build Warning: the following items did not execute (for openssl): org.macports.install org.macports.build org.macports.destroot
:notice:build Log for openssl is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_openssl/openssl/main.log

知道如何升级 openssl 吗?

答案1

中线,

逃离港口的想法并不总是能够解决现有问题。

-d开关在安装过程中添加了大量调试信息,因此如果您不想看到这些信息,请忽略该-d开关。但清理并重新安装失败的软件包却创造了奇迹。

答案2

我强烈建议从 macports 迁移到自制,其维护得更好,依赖关系问题也更少。此外,您永远不需要在 Homebrew 中使用 sudo:

brew install lighttpd

相关内容