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.