I remember that Nginx was installed on my ubuntu. since it was a desktop computer, I have installed Nginx again on the virtual machine in my notebook, the installation process was a bit difficult. I didn't take notes before. this installation took a lot of trouble... I remember that Nginx was installed on my ubuntu. since it was a desktop computer, I have installed Nginx again on the virtual machine in my notebook, the installation process was not smooth. I didn't take notes before. It took a lot of unnecessary time to install it. this time, I want to record all the installation processes and encountered processes, provide a reference for the installed users. Www.2cto.com my environment: redhat5 under vm7.5 1. download the nginx installation package ( http://wiki.nginx.org/Install ) I downloaded the source file from the official website. after uploading the file to redhat, I installed it as follows :. /configure // The error is reported in this step. it is probably because I lack other packages make & make install, and then Google will install openssl, zlib, and, pcre these three packages are installed respectively after these three packages continue to compile nginx source code/configure -- user = root -- group = root -- prefix =/usr/local/nginx/-- with-http_stub_status_module -- with-openssl =/usr/local/openssl make & make install www.2cto.com to complete the installation, after nginx is started, an error is reported. The error is:/usr/local/webserver/nginx/sbin/nginx: error while loading shared libraries: libpcre. so.1: cannot open shared object file: No such file or directory was originally unable to find libpcre. in the so.1 file, run ldd $ (which =/usr/local/nginx/sbin/nginx) to check 1linux-gate.so.1 => (0x00312000) 2 libpthread. so.0 =>/lib/libpthread. so.0 (0x00430000) 3 libcrypt. so.1 =>/lib/libcrypt. so.1 (0x065c4000) 4 libpcre. so.1 => not found libc. so.6 =>/lib/libc. so.6 (0x00110000) 5 www.2cto.com/lib/ld-linux.so.2 (0x00284000) enter/usr/lib to find libpcre-related files, there are 1 [root @ bogon lib] # ls | grep libpcre2libpcrecpp. so.03libpcrecpp. so.0.0.04libpcreposix. so.05libpcreposix. so.0.0.0 I tried to change libpcre. so.1 makes a soft link to libpcrecpp. after so.0 and then run nginx again, no error is reported. open the browser and enter http://localhost/ The initial default page is displayed! Prepared by aiheng1988
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