| Author |
RE: [PHP-INSTALL] problems at install: zlib error
|
|
| Mike Beck 2004-03-26, 11:23 pm |
| klaus wrote:
> Dear all,
>=20
> I am to set up a LAMPS system
> (Red Hat 7.3, apache 1.3.29, MySQL 4.0.18, PHP 4.3.4).
>=20
> When trying to configure PHP with the follwing command:
>=20
> ./configure --with-apache=3D/usr/local/apache/apache_1.3.29
>=20
> --with-mysql=3D/usr/local/mysql
>=20
> --with-mcrypt=3D/usr/local/mcrypt_2_5_7/libmcrypt-2.5.7
>=20
>=20
> ... I get this:
>=20
> ****
> configure: error: Try adding --with-zlib-dir=3D<DIR>. Please
> check config.log for more information.
> ****
Did you try that? (Adding --with-zlib-dir=3D<DIR> )?
--=20
Mike Beck
mike.beck@ibmiller.de
| |
| Klaus 2004-03-26, 11:23 pm |
| Hi Mike,
thanks for your response.
Initially I just took:
../configure --with-apache=... --with-mysql=... --with-mcrypt=...
The trials including
--with-zlib-dir=...
or
--with-zlib=...
also failed.
Do you or anyone else have an idea?
Greetings
Klaus
"Mike Beck" <Mike.Beck@ibmiller.de> schrieb im Newsbeitrag
news:0B241138B8B09F4792DA46CA0785A46503E
DC6@ANNA.ibmiller.lan...
klaus wrote:
> Dear all,
>
> I am to set up a LAMPS system
> (Red Hat 7.3, apache 1.3.29, MySQL 4.0.18, PHP 4.3.4).
>
> When trying to configure PHP with the follwing command:
>
> ./configure --with-apache=/usr/local/apache/apache_1.3.29
>
> --with-mysql=/usr/local/mysql
>
> --with-mcrypt=/usr/local/mcrypt_2_5_7/libmcrypt-2.5.7
>
>
> ... I get this:
>
> ****
> configure: error: Try adding --with-zlib-dir=<DIR>. Please
> check config.log for more information.
> ****
Did you try that? (Adding --with-zlib-dir=<DIR> )?
--
Mike Beck
mike.beck@ibmiller.de
| |
| Mike Beck 2004-03-26, 11:23 pm |
| klaus wrote:
> Hi Mike,
>=20
> thanks for your response.
>=20
> Initially I just took:
> ./configure --with-apache=3D... --with-mysql=3D... --with-mcrypt=3D...
>=20
> The trials including
> --with-zlib-dir=3D...
> or
> --with-zlib=3D...
>=20
> also failed.
>=20
> Do you or anyone else have an idea?
>=20
What do you mean they failed? You gave --with-zlib-dir=3D with a correct
path? Was zlib found during ./configure or did you get errormessages? Do
you have the zlib-dev packages (however they are called in whatever
distribution you are using) installed?
--=20
Mike Beck
mike.beck@ibmiller.de
| |
| Chris Hewitt 2004-03-26, 11:23 pm |
| Bottom posting...
klaus wrote:
>Hi Mike,
>
>thanks for your response.
>
>Initially I just took:
>./configure --with-apache=... --with-mysql=... --with-mcrypt=...
>
>The trials including
> --with-zlib-dir=...
>or
> --with-zlib=...
>
>also failed.
>
>Do you or anyone else have an idea?
>
>Greetings
>Klaus
>
>
>"Mike Beck" <Mike.Beck@ibmiller.de> schrieb im Newsbeitrag
> news:0B241138B8B09F4792DA46CA0785A46503E
DC6@ANNA.ibmiller.lan...
>klaus wrote:
>
>
>Did you try that? (Adding --with-zlib-dir=<DIR> )?
>
>--
>Mike Beck
>mike.beck@ibmiller.de
>
How does it fail? My PHP 4.0.6 on RH 7.2 does not have a zlib path, have
you tried just "--with-zlib"?
HTH
Chris
| |
| Klaus 2004-03-26, 11:23 pm |
| Hi Mike,
I started to study the config.log file more in deep.
The kick-out error was:
****
conftest.c -lmysqlclient -lmcrypt -lltdl -lresolv -lm -ldl -lnsl 1>&5
/usr/bin/ld: cannot find -lltdl
****
Then I visited
http://mcrypt.hellug.gr/mcrypt/index.html
an learned that I have to install not only libmcrypt but also
mcrypt and libmhash.
Afte installing libmcrypt it was essential to move into the "./libltdl"
folder
and type the following shell commands:
> ./configure --enable-ltdl-install
> make
> make install
After that configuring PHP with
../configure --with-apache=... --with-mysql=... --with-mcrypt=...
worked.
hurra
Thanks a lot for your support
Klaus
"Mike Beck" <Mike.Beck@ibmiller.de> schrieb im Newsbeitrag
news:0B241138B8B09F4792DA46CA0785A46503E
DDC@ANNA.ibmiller.lan...
klaus wrote:
> Hi Mike,
>
> thanks for your response.
>
> Initially I just took:
> ./configure --with-apache=... --with-mysql=... --with-mcrypt=...
>
> The trials including
> --with-zlib-dir=...
> or
> --with-zlib=...
>
> also failed.
>
> Do you or anyone else have an idea?
>
What do you mean they failed? You gave --with-zlib-dir= with a correct
path? Was zlib found during ./configure or did you get errormessages? Do
you have the zlib-dev packages (however they are called in whatever
distribution you are using) installed?
--
Mike Beck
mike.beck@ibmiller.de
| |
| Klaus 2004-03-26, 11:23 pm |
| Hi Chris,
I started to study the config.log file more in deep.
The kick-out error was:
****
conftest.c -lmysqlclient -lmcrypt -lltdl -lresolv -lm -ldl -lnsl 1>&5
/usr/bin/ld: cannot find -lltdl
****
Then I visited
http://mcrypt.hellug.gr/mcrypt/index.html
an learned that I have to install not only libmcrypt but also
mcrypt and libmhash.
Afte installing libmcrypt it was essential to move into the "./libltdl"
folder
and type the following shell commands:
> ./configure --enable-ltdl-install
> make
> make install
After that configuring PHP with
../configure --with-apache=... --with-mysql=... --with-mcrypt=...
worked.
hurra
Thanks a lot for your support
Klaus
"Chris Hewitt" <g0pae@manordat.demon.co.uk> schrieb im Newsbeitrag
news:4063F57D.4020300@manordat.demon.co.uk...
> Bottom posting...
> klaus wrote:
>
> How does it fail? My PHP 4.0.6 on RH 7.2 does not have a zlib path, have
> you tried just "--with-zlib"?
> HTH
> Chris
| |
| Chris Hewitt 2004-03-26, 11:23 pm |
| klaus wrote:
[color=darkred]
>Hi Chris,
>
>I started to study the config.log file more in deep.
>The kick-out error was:
>
>****
>conftest.c -lmysqlclient -lmcrypt -lltdl -lresolv -lm -ldl -lnsl 1>&5
>/usr/bin/ld: cannot find -lltdl
>****
>
>Then I visited
>http://mcrypt.hellug.gr/mcrypt/index.html
>an learned that I have to install not only libmcrypt but also
>mcrypt and libmhash.
>Afte installing libmcrypt it was essential to move into the "./libltdl"
>folder
>and type the following shell commands:
>
>
>After that configuring PHP with
>./configure --with-apache=... --with-mysql=... --with-mcrypt=...
>worked.
>
>hurra
>
>Thanks a lot for your support
>Klaus
>
>
>
>"Chris Hewitt" <g0pae@manordat.demon.co.uk> schrieb im Newsbeitrag
>news:4063F57D.4020300@manordat.demon.co.uk...
>
Glad you got it working and thanks for sending the solution to the list
(so it goes into the archives).
Chris
| |
| Andrew Wills 2004-03-27, 11:55 pm |
| Klaus wrote:
> Hi Mike,
>
> thanks for your response.
>
> Initially I just took:
> ./configure --with-apache=... --with-mysql=... --with-mcrypt=...
>
> The trials including
> --with-zlib-dir=...
> or
> --with-zlib=...
>
> also failed.
>
> Do you or anyone else have an idea?
>
> Greetings
> Klaus
>
>
> "Mike Beck" <Mike.Beck@ibmiller.de> schrieb im Newsbeitrag
> news:0B241138B8B09F4792DA46CA0785A46503E
DC6@ANNA.ibmiller.lan...
> klaus wrote:
>
>
>
> Did you try that? (Adding --with-zlib-dir=<DIR> )?
>
> --
> Mike Beck
> mike.beck@ibmiller.de
Hello,
I also had the same problem and overcame it by installing the
zlib-devel package. Once I had installed the dev package I built php
using the command line:
home:/usr/local/php-4.3.4 # ./configure
--with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql-standard-4.0.18-pc-linux-i686 -with-zlib
I am using Suse 9.0, apache 2 and MySQL.
Hope this helps,
Andrew
| |
| Andrew Wills 2004-03-27, 11:55 pm |
| Klaus wrote:
> Hi Mike,
>
> thanks for your response.
>
> Initially I just took:
> ./configure --with-apache=... --with-mysql=... --with-mcrypt=...
>
> The trials including
> --with-zlib-dir=...
> or
> --with-zlib=...
>
> also failed.
>
> Do you or anyone else have an idea?
>
> Greetings
> Klaus
>
>
> "Mike Beck" <Mike.Beck@ibmiller.de> schrieb im Newsbeitrag
> news:0B241138B8B09F4792DA46CA0785A46503E
DC6@ANNA.ibmiller.lan...
> klaus wrote:
>
>
>
> Did you try that? (Adding --with-zlib-dir=<DIR> )?
>
> --
> Mike Beck
> mike.beck@ibmiller.de
Hello,
I had the same problem until I loaded the zlib-devel package. I then
used the following command line to build php and it worked fine:
# ./configure --with-apxs2=/usr/local/apache/bin/apxs
--with-mysql=/usr/local/mysql-standard-4.0.18-pc-linux-i686 -with-zlib
then make; make install and it was fine.
I am using Suse Linux 9.0, apache 2 and Mysql 4.
Good Luck!.
Andrew
|
|
|
|