Forum Moderators: phranque

Message Too Old, No Replies

Can't compile Apache

FreeBSD

         

jayssite

12:50 pm on Sep 18, 2005 (gmt 0)



I'm not very good at unix shell commands, so I'm completely stuck now that I got this error.

Here's everything I did:

vps# mkdir /usr/local/apache

vps# ./configure --prefix=/usr/local/apache
Configuring for Apache, Version 1.3.33
+ using installation path layout: Apache (config.layout)
Creating Makefile
Creating Configuration.apaci in src
Creating Makefile in src
+ configured for FreeBSD 4.11 platform
+ setting C compiler to gcc
+ setting C pre-processor to gcc -E
+ using "tr [a-z] [A-Z]" to uppercase
+ checking for system header files
+ adding selected modules
+ using builtin Expat
+ checking sizeof various data types
+ doing sanity check on compiler and options
Creating Makefile in src/support
Creating Makefile in src/os/unix
Creating Makefile in src/ap
Creating Makefile in src/main
Creating Makefile in src/lib/expat-lite
Creating Makefile in src/modules/standard

vps# make
"Makefile", line 333: Need an operator
"Makefile", line 566: Need an operator
make: fatal errors encountered -- cannot continue

py9jmas

1:08 pm on Sep 18, 2005 (gmt 0)

10+ Year Member



If the FreeBSD system has the Ports collection installed, try:
$ cd /usr/ports/www/apache13
$ make install clean

That's what I've always used before.
[freebsd.org...]

If you need to compile Apache yourself, you may need to use gmake instead of make. BSD make uses different syntax to GNU make.