简体   繁体   中英

Install OpenSSL 1.0.2 in /opt/local on MacOS

I have an installed version of openssl 0.9.8zg in /usr/bin/openssl . However I need to have a version of openssl 1.0.2 in /opt/local . I was trying to update the version in /usr/bin/openssl and then move to /opt/local , but since I am using El Capitane I cannot access /usr/bin . How can I install an upgraded openssl in the given directory?

I don't know of a package manager that uses /opt/local, but the easiest may be to make symlinks there from a brew install, or you could build openssl from source using the --prefix=/opt/local configure option, ie...

./configure --prefix=/opt/local
make
make install

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM