Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

nginx install on linux

Tags:

nginx

I downloaded nginx from it's site for linux(I use ubuntu 10.4).I extracted nginx-1.0.6.tar.gz and there was a configure file in that directory. So I entered "./configure" command in shell. It seemed to be configured right.After I entered "make" command ,It said 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?

like image 546
Babak Mehrabi Avatar asked Sep 05 '11 05:09

Babak Mehrabi


1 Answers

you have to install Dependencies . generally these will be enough

libpcre3 libpcre3-dev libpcrecpp0 libssl-dev zlib1g-dev

so you can first install them

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

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

like image 185
Vamsi Krishna B Avatar answered Nov 16 '22 04:11

Vamsi Krishna B