0

When I run make inside my installed nginx directory I get the output:

make -f objs/Makefile
make[1]: Entering directory `/home/ec2-user/nginx/nginx-1.2.4'
objs/Makefile:110: *** multiple target patterns.  Stop.
make[1]: Leaving directory `/home/ec2-user/nginx/nginx-1.2.4'

make: *** [build] Error 2

I am on an Amazon Linux AMI.

The steps I took from the beginning was

wget /path/to/nginx/tarball
tar xvf nginx-1.2.4.tar.gz
cd nginx-1.2.4
./configure --prefix=/nginx --a-bunch-of-other-options

Then I ran make.

Also I installed make by running sudo yum install make

Please let me know if there's any other information I should be providing.

Justin Meltzer
  • 711
  • 1
  • 9
  • 19
  • please paste the full log of your failed build – Hex Sep 29 '12 at 02:05
  • @Hex ok the full output is there – Justin Meltzer Sep 29 '12 at 02:07
  • If you are not using custom parameters for your Nginx build, you may find it much easier to just install Nginx binary from the Nginx repository. The options used are good for most installations (with the added advantage of updates being easily installable). If you are interested, instructions for setting up the Nginx repository can be found on the [Nginx Wiki](http://wiki.nginx.org/Install#Official_Red_Hat.2FCentOS_packages) (For Amazon's Linux, use the instructions you would for CentOS6). – cyberx86 Sep 29 '12 at 02:23
  • @cyberx86 yeah I ended up installing it through `yum` – Justin Meltzer Sep 29 '12 at 02:41

1 Answers1

0

There's probably a variable in objs/Makefile on line 110 which contains a colon -- e.g. as part of a filename. See also:

Lars Rohrbach
  • 428
  • 4
  • 12