1.Download lib
http://mirrors.ibiblio.org/openssl/source/2.Setup
/config --prefix=/usr --openssldir=/usr/local/openssl shared
Try that config line instead to overwrite the default. It installs to prefix /usr/local/ssl by default in your setup when you leave off the prefix. You probably have /usr/local/ssl/bin/openssl instead of overwriting /usr/bin/openssl. You can also use /usr/local for prefix instead, but you would need to adjust your path accordingly if that is not already on your path. Here is the INSTALL documentation:
$ ./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
3.Referrences
http://stackoverflow.com/questions/22952287/how-to-upgrade-openssl-in-centos-6-5-linux-unix-from-source4. Note
Tham số shared là bắt buộc
Không có nhận xét nào:
Đăng nhận xét