How to set the LD_LIBRARY_PATH variable

Source: Internet
Author: User
Add a line of usrlocalmysqllib under etcld. so. conf and save it to ldconfig. The new library can be found when the program is running. To share the dynamic link library with the system, you also need to run the ldconfigldconfig command, which is mainly used in the default search directory (lib and usrlib) and

Add a/usr/local/mysql/lib line under/etc/ld. so. conf and save it to ldconfig. The new library can be found during the process.

To share the dynamic link library with the system, you also need to manage the dynamic link library.Command-- Ldconfig

The ldconfig command is mainly used in the default search directory (/lib and/usr/lib) and dynamic library configuration file/etc/ld. so. find the shared dynamic link library under the directory listed in conf (format as described earlier, lib *. so *) to create a dynamic loader (ld. so) the required connection and cache file. the default cached file is/etc/ld. so. cache. This file stores the list of Dynamic Linked Library names in the sorted order.

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.