尝试使用macports安装lighttpd,但是'升级openssl失败'?


0

我想用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吗?


修复它: sudo port clean openssl 然后 sudo port -d install openssl
Richard

Answers:


0

我强烈建议从macport转移到 自制 ,对于依赖关系来说,维护得更好,问题也更少。此外,您永远不需要在自制软件中使用sudo:

brew install lighttpd


0

Midwire,

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

-d switch会在安装过程中添加大量调试信息,因此如果您不想看到,请省略 -d 开关。但是清理和重新安装失败的包装却创造了奇迹。

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.