An error occurred today when using the AB Stress test tool on a test server
Ab:error while loading shared libraries:libssl.so.1.0.0:cannot open Shared object file:no such file or directory
Query the data, found that the reason is that the correct shared library path could not be found.
Resources:
Linux Shared library Path configuration
/etc/ld.so.conf file
Workaround:
1. Add the search path and update using the Ldconfig command.
View/etc/ld.so.conf
After opening the file, the content is
Include ld.so.conf.d/*.conf
To this file actually contains all the. conf files in this directory of/etc/ld.so.conf.d/, so we can create a new file under this path with the words "/usr/local/lib", "/usr/local/mysql/ Lib "Path,
I created a mylib.conf file,
I used the where command to find the libssl.so within the/usr/lib64 directory, so I wrote/usr/lib64 in Mylib.conf,
Saves the Save exit.
Remember to take the initiative to execute the command: ldconfig, which updates the cache file that records what so files are in the system (/etc/ld.so.cache)
2. Create a soft connection to the required library file
Due to the error in the hint need libssl.so.1.0.0, and/usr/lib64 only libssl.so, so I created a libssl.so a soft connection: Ln-s./libssl.so./libssl.so.1.0.0
Execute AB again, yes.
Linux Shared library Path configuration