CP-FRP/usr/lib64/libjpeg. */usr/lib/
CP-FRP/usr/lib64/libpng */usr/lib/
CP-FRP/usr/lib64/libldap */usr/lib/
Just released centos6.1, and downloaded the 64-bit version for testing.
Follow the original lnmp installation tutorial. during PHP installation. run. /configure. the error "Configure: Error: libjpeg. (A | so) not found "this error. libjpeg and libjpeg-devel have been installed. however, the system still prompts that the library file cannot be found. obviously, it is a path problem. by default, the corresponding files are searched in the/usr/lib/directory. however, whereis libjpeg was used to detect the vulnerability. libjpeg is installed in the/usr/lib64/directory.
[Root @ bogon php-5.2.17] # whereis lib1_libjpeg:/usr/lib/libjpeg. So/usr/lib64/libjpeg. So
1. If"Configure: Error: libjpeg. (A | so) not found"Error
Therefore, we need to copy libjpeg. So to the/usr/lib/directory to execute the./configure command again.
CP-FRP/usr/lib64/libjpeg. */usr/lib/
2. Note that"Configure: Error: LibPNG. (also) not found."Error. The solution is the same as above.
CP-FRP/usr/lib64/libpng */usr/lib/
3. If"Configure: Error: cannot find LDAP libraries in/usr/lib .".
CP-FRP/usr/lib64/libldap */usr/lib/
Note:
The above search actually shows some reasons. The configure general search compilation path is/usr/lib, because PHP searches for the relevant library files under/usr/lib/by default, and the x64 machine is on: /usr/lib64. then you can directly copy the required library files from/usr/lib64 to/usr/lib.
Common error reference: http://apps.hi.baidu.com/share/detail/11746738