Linux Shared library Path configuration

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.