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 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.


Linux Shared library Path configuration

/etc/ file


1. Add the search path and update using the Ldconfig command.


After opening the file, the content is


To this file actually contains all the. conf files in this directory of/etc/, 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 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/

2. Create a soft connection to the required library file

Due to the error in the hint need, and/usr/lib64 only, so I created a a soft connection: Ln-s./

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: 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.