Click to See Complete Forum and Search --> : mysql/php/apache install error


jdm34
07-27-2001, 10:36 PM
I'm trying to install apache with mySQL and PHP using the Newbieized Help Files. Now, I've got mySQL up and running. PHP went through the configure, make and make install without any problems. Apache went through the configure ok, but then died on the make. The error it is dying on seems to have something to do with mySQL. The error displays:

/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_uncompress':
my_compress.o(.text+0x9a): undefined reference to `uncompress'
/usr/local/mysql/lib/libmysqlclient.a(my_compress.o): In function `my_compress_alloc':my_compress.o(.text+0x12a): undefined reference to `compress'

I'm lost and don't know where to go from here... Any suggestions?

VRay
07-28-2001, 03:03 PM
I am struggling with the same thing. Check out http://www.apachetoolbox.com/ for their auto-installer of apache, php and mysql. I am about to try it out. I'll keep you posted.

jdm34
07-29-2001, 06:49 PM
After doing some research using Google, I found somewhat of a fix to this problem (apparently this seems to be RedHat specific)

edit the Makefile: apache_1.3.x/src/Makefile

on the line that begins with: LDFLAGS=$(...

Add '-lz' (for RedHat) or '-lgz' (for others, lgz didn't work for me) so you would then have:

LDFLAGS=$(... -lz

Then try make again.

I got this specific info from:
http://www.phpbuilder.com/forum/read.php3?num=3&id=103937&thread=102446


Now although I was able to successfully make and make install, I'm getting errors when running "apachectl start"

The error I get is:

./apachectl: line 171: 2309 Segmentation fault (core dumped) $HTTPD
./apachectl start: httpd could not be started

[ 29 July 2001: Message edited by: jdm34 ]

jdm34
07-30-2001, 11:00 AM
It's fixed! I just restarted my computer, started up apache and it worked!

VRay
07-30-2001, 07:19 PM
Got to love that!