[英]Install OpenSSL 1.0.2 in /opt/local on MacOS
I have an installed version of openssl 0.9.8zg
in /usr/bin/openssl
. 我在
/usr/bin/openssl
有一个openssl 0.9.8zg
的安装版本。 However I need to have a version of openssl 1.0.2
in /opt/local
. 但是我需要在
/opt/local
有一个openssl 1.0.2
版本。 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
. 我试图更新
/usr/bin/openssl
的版本,然后移至/opt/local
,但是由于我使用的El Capitane
所以无法访问/usr/bin
。 How can I install an upgraded openssl in the given directory? 如何在给定目录中安装升级的openssl?
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... 我不知道使用/ opt / local的软件包管理器,但最简单的方法可能是从
brew
安装中建立符号链接,或者您可以使用--prefix=/opt/local
configure选项从源代码构建openssl,即...
./configure --prefix=/opt/local
make
make install
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.