Click to See Complete Forum and Search --> : Thoughts on a configure problem


rogair
07-23-2001, 02:37 PM
I've been trying to reconfigure PHP with zlib with little success. I got the zlib package and installed ok, trouble is when I go to reconfigure PHP I run
./configure --with-imap=/usr/local --with-mysql=/usr/local --with-apache=../apache_1.3.12 --enable-bcmath --enable-track-vars --enable-ftp --with-zlib

It runs and nothing in the output would indicate that it didn't configure with zlib.

(I've run it as above and with --with-zlib=/usr/local and -with-zlib=/usr/local/lib)

make
make install
then I restart the webserver.

Alas no zlib support, phpinfo() shows configure command without the --with-zlib. Any ideas?!?

farzal
07-23-2001, 03:15 PM
the INSTALL file recommends that you delete the config.cache file from php directory before you run a fresh config. Hope that helps,
Farzal

rogair
07-23-2001, 04:19 PM
That's very good to know. Unfortunately I just tried it and no luck. I did notice something during the make that might yield some info. It states:
php_config.h unchanged

Now if I changed the configuration wouldn't that file change?

Other thoughts?

smarlowe
07-24-2001, 09:34 AM
What distro are you running? Most every late model Linux distro already has zlib in it, and you don't have to do anything to get php to use it but enter the --with-zlib argument and php's configure script should find it.

To see if you have zlib installed, try this, as root, from the command line:

rpm -qa|grep zlib

If you already have it, installing a second one from a source file (i.e. .tar.gz file) is not needed.

rogair
07-24-2001, 10:35 AM
Well I'm not running Linux for one. I'm running FreeBSD 4.1. But that's not really the issue. I have zlib installed now I just need to get PHP configured to work with it, that's where I'm having trouble. For some reason it's not installing with the new configuration.

Anon
07-24-2001, 11:15 AM
i found that 4.06 configure isn't working very nice... after first configure/make/install all other configure runs with different switches aren't taking any effect, even with .cache deleted.

is it just me?

brandonschnell
07-24-2001, 04:41 PM
are you using "make clean" before changing the php config?

Anon
07-25-2001, 08:05 AM
have you tried the config log file and seen the comment when it parses for zlib?

Have a peek at the makefile as well - it could be that an explicit path is necessary.

rogair
07-25-2001, 10:11 AM
Just tried that. The make then runs significantly longer. All of the zlib stuff looks like it runs ok. It finds the files it's looking for, but I still don't have the zlib functions. ARghhh!