Install nginx on Linux

I downloaded nginx from this site for linux (I am using ubuntu 10.4). I extracted nginx-1.0.6.tar.gz, and there was a configuration file in this directory. So I entered the "./configure" command in the shell. It seems to be configured correctly. After entering the make command, she made this error:

make -f objs/Makefile
make[1]: Entering directory `/usr/local/nginx'
cd ./auto/lib/pcre/ \
    && if [ -f Makefile ]; then make distclean; fi \
    && CC="gcc" CFLAGS="-O2 -fomit-frame-pointer -pipe " \
    ./configure --disable-shared
/bin/sh: ./configure: not found
make[1]: *** [auto/lib/pcre//Makefile] Error 127
make[1]: Leaving directory `/usr/local/nginx'
make: *** [build] Error 2

What should I do now?

+5
source share
9 answers

you need to install Dependencies. usually it will be enough

libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

so you can install them first

sudo apt-get install libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

and then compile .. also make sure you run make as root.

+5
source

./configure nginx nginx dynamicaly, openssl prce zlib. , .. /nginx/configure .

--with-pcre=/path/to/lib         # where libpcre.a resides
--with-openssl=/path/to/lib      # where libssl.a resides
--with-zlib=/path/to/lib         # where libz.a resides

, ld.so libs

nginx

    --with-pcre=/path/to/src/of/pcre         
    --with-openssl=/path/to/src/of/openssl     
    --with-zlib=/path/to/src/of/zlib

e.g.
--with-pcre=../pcre-8.36 --with-openssl=../openssl-1.0.2 --with-zlib=../zlib-1.2.8
+3

. ( nginx):

./configure --with-pcre=./auto/lib/pcre/ --with-zlib=./auto/lib/zlib/
./configure
make
sudo make install
+1

nginx - , objs/Makefile -Wall -Werror, ( ):

CC =    gcc
CFLAGS =  -pipe  -O -W -Wpointer-arith -Wno-unused-parameter -Wunused-function -Wunused-variable -Wunused-value -g

, . /configure , . - ,

less objs/autoconf.err

. .

+1
  • PCRE
  • ( )
  • ( "" )

./configure --with-pcre=/home/USER/DOWNLOADS/pcre-8.37/

+1

nginx:

sudo add-apt-repository ppa: nginx/stable

. ( 12.10), :

sudo apt-get install software-properties-common

Ubuntu . , , . -

:

sudo apt-get

nginx

nginx , , :

sudo apt-get install nginx

, Nginx

, nginx IP-/ VPS, :

nginx

, nginx.

0

with vps debian wheezy I need to install many tools to install nginx 1.2.9:

apt-get install libpcre3 libpcre3-dev

apt-get install --reinstall zlibc zlib1g zlib1g-dev

apt-get install make make

apt-get install sudo

0
source

All Articles