Precautions for nginx 0.8.x + PhP 5.2.13 (FastCGI) to build a web server that is 10 times better than Apache

Source: Internet
Author: User

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

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.