./config --prefix=/usr --openssldir=/usr/local/openssl shared
请try 此配置行以覆盖默认设置.在默认情况下,当您取消前缀时,它会安装为prefix/usr/local/ssl.您可能有"/usr/local/ssl/bin/openssl",而不是覆盖/usr/bin/openssl.也可以使用/usr/local作为前缀,但如果路径上还没有/usr/local,则需要相应地调整路径.以下是安装文档:
$ ./config
$ make
$ make test
$ make install
[If any of these steps fails, see section Installation in Detail below.]
This will build and install OpenSSL in the default location, which is (for
historical reasons) /usr/local/ssl. If you want to install it anywhere else,
run config like this:
$ ./config --prefix=/usr/local --openssldir=/usr/local/openssl
https://github.com/openssl/openssl/blob/master/INSTALL