Compilation exception:/usr/bin/ld: cannot find XXX solved

Source: Internet
Author: User

Compilation exception:/usr/bin/ld: cannot find XXX solves the problem of the LAMP environment where PHP is recently installed. When compiling PHP, an exception is reported: www.2cto.com configure: error: mysql configure failed. please check config. log to view config. log found that the error "usr/bin/ld: cannot find-lltdl" was put on the Internet and continuously tested. The problem was finally solved. Find/usr/lib64/libltdl. so.3.1.4: execute the following command in this directory: ln-sv libltdl. so.3.1.4 libltdl. so here are the materials on the Internet: usr/bin/ld: cannot find-lxxx errors usually occur during software compilation, the main reason is that the library file is not in the imported ld search directory. Www.2cto.com solution: 1. Check whether the library file exists, such as-l123, and whether lib123.so exists under/usr/lib,/usr/local/lib, or other custom lib. If only lib123.so exists. 1, you can use ln-sv lib123.so. 1 lib123.so, establish a connection and recreate lib123.so. 2. Check/etc/ld. so. whether the path of the library file in conf is correct. If the library file is not using the system path,/usr/lib,/usr/local/lib, you must add it to the file. 3. Ldconfig re-creates the ld. so. cache file, and stores the files in the ld LIBRARY File Retrieval directory. In particular, the software just compiled and installed must run ldconfig to import the newly installed library file to ld. so. cache. 4. Test, gcc-l123 -- verbose.

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.