Click to See Complete Forum and Search --> : Apache Error when installing PHP


Anon
07-26-2001, 02:48 AM
Well...I installed Slackware 7.1 in my laptop and no problem with apache,php and mysql...
But now I installed the same slackware in other pc...
i installed Mysql, apache and apache works fine,...then i install php without errors but when I run httpd i get this error...

Syntax error on line 205 of httpd.conf:
Cannot load pathto/libphp4.so into server: pathto/libphp4.so:undefined symbol: uncompress

what is this error? why in the laptop all was fine doing the same???
thanks

Anon
07-26-2001, 05:14 AM
before doing 'make' edit the toplevel Makefile.

make sure that the line beginning with 'LTLIBRARY_LDFLAGS = [...]' has '-lz' in it

Anon
07-26-2001, 09:29 AM
Sorry Pete....I don\'t really understand what u mean there.. I\'m facing the same problem too. I\'m wondering why ...: )
thanks in advance!

Anon
07-26-2001, 12:11 PM
HI!!!THANKSSSSS!!!
Say Mun, in this line I have
LTLIBRARY_LDFLAGS = -"something" $(...) ...
welll....just type -lz between = and the first -anything you have....

Anon
07-26-2001, 12:19 PM
ooopss....but now i think php code doesn´t work.........@!#$.....

Anon
07-26-2001, 12:27 PM
hehe....i forget uncomment line Addtype for php.............it works

Anon
07-26-2001, 05:02 PM
I'm installing now.....results not known yet!~ LoL...
pray for me!

Anon
07-26-2001, 05:12 PM
Hey...thanks man..for the help!!!!
IT works@! Had been working for nites to solve it...finally!!!
LOL.
x )

Anon
07-27-2001, 07:15 AM
when compiling/installing php you begin with ./configure. After that you do make and make install. Before doing make, edit the file 'Makefile' in the dir 'php-4.0.6' (in my case version 4.0.6). Find a line that begins with 'LTLIBRARY_LDFLAGS = ', in my case it is

LTLIBRARY_LDFLAGS = -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)

i changed it to

LTLIBRARY_LDFLAGS = -lz -rpath $(phptempdir) $(EXTRA_LDFLAGS) $(LDFLAGS) $(PHP_RPATHS)

Now save the file and run make and make install.

That should do it.

farzal
07-30-2001, 11:16 AM
Hi Pete,
What kind of a hack is that? What changes by adding -lz ?
Thanks,
Farzal