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