How to use the latest openssl update?
I have openssl 0.9.8g installed on my computer... It seems that it has a known bug which I ran into.
I wanted to install the current version 1.0.0d which seems to have fixed the bug.
so, basic install :
$ ./config
$ make
$ sudo make install
However even after recompiled my software I 开发者_开发技巧still get the same error, and it is for sure coming from 0.9.8 since it is written in the error :
error:1408F06B:SSL routines:SSL3_GET_RECORD:bad decompression:/SourceCache/OpenSSL098/OpenSSL098-35/src/ssl/s3_pkt.c:438:
Let's assume you installed your downloaded version of OpenSSL to /home/yourname/openssl
. Then you need to tell your software to use that custom install instead of the pre-packaged 0.9.8 that already resides on your file system. There's no need to uninstall that, you can have several installations on your machine. "Telling" your software where to find your custom installation is by providing the linker with the correct paths where to find libssl and libcrypto. Add these to the linking options in your Makefile:
-L/home/yourname/openssl/lib -Wl,-R/home/yourname/openssl/lib
Then it should link against the new version just fine. To verify it did, you can use
ldd <your_executable_or_library>
and verify that the custom OpenSSL path is listed there and not the old one.
I'm not sure about the OS you are using, but my guess is that you first have to remove the erroneous old version before you move on the install the newer one. Some OSes don't put libraries installed with sudo make install
in the same place as with a packet manager. Also the lookup order of the libraries might cause it to load the older one.
精彩评论