0

I am trying to install Nginx server on ubuntu using

wget http://nginx.org/download/nginx-1.5.3.tar.gz
tar xvfz nginx-1.5.3.tar.gz
cd nginx-1.5.3
./configure
make
install

this is what I get:

 tar: Skipping to next header

 gzip: stdin: invalid compressed data--crc error

 gzip: stdin: invalid compressed data--length error 
 tar: Child returned status 1
 tar: Error is not recoverable: exiting now
 ./configure: 10: .: Can't open auto/options
 make:  *** No targets specified and no makefile found.  Stop.
 make: *** No rule to make target `install'.  Stop.

What seems to be the problem with all these errors?

Philip Kirkbride
  • 21,381
  • 38
  • 125
  • 225
HobbitOfShire
  • 2,144
  • 5
  • 24
  • 41

2 Answers2

1

You are getting a bunch of tar errors, which might mean that the archive is broken. Try to address those issues first before doing a make. I would start with replacing tar xvfz nginx-1.5.3.tar.gz with tar -xvzf nginx-1.5.3.tar.gz

Dmitry Igoshin
  • 111
  • 1
  • 3
0

is gzip installed already? check by:

whereis gzip

and install it on ubuntu by:

sudo apt-get install gzip
vvy
  • 1,963
  • 13
  • 17