Set the. so link file path in CentOS

Source: Internet
Author: User
The linked libraries are generally in/usr/lib and/lib. if you download a large library file, do you have to copy all the lib paths? in windows, you can add the PATH of the library to the PATH. Is that true for linux? The answer is yes. Switch to The etc directory, and there is a file named ld. so. conf. cat, there is only one line of deld. so

The linked libraries are generally in/usr/lib and/lib. if you download a large library file, do you have to copy all the lib paths? in windows, you can add the library PATH to the PATH

Not linux? The answer is yes.

Switch to The etc directory, which is named ld. so. conf file, cat, only one line is include ld. so. conf. d /*. conf, which means contain ld. so. conf. d directory. conf

And cd to the ls directory in ld. so. conf. d.

Find some conf files and find a cat.

There is only one row in it, which looks like a path. Yes, this specifies the path.

As a result, if we want to specify the so link path, it will be directly in the ld. so. conf. create a conf file in the d directory and write the file to the specified path.

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.