Date: 01/31/00
- Next message: Andrei Zmievski: "[PHP4BETA] cvs: /php4 NEWS"
- Previous message: rasmus <email protected>: "Re: [PHP4BETA] libgd and png"
- In reply to: Bruno Ricci: "[PHP4BETA] libgd and png"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Bruno Ricci wrote :
> I tried to use libgd version 1.7.3 with php beta3 but there are a lot of
> problems while running configure
>
> Does anybody knows a solution to this problem
I had trouble getting it to work too. The configure script had
problems locating "libgd.a" and "libgd.h". The main reason is
that in gd's Makefile, you can choose the dest dirs (include and
lib) to be whatever you want :
$cat gd-1.7.3/Makefile
[...]
#Location where libgd.a should be installed by "make install".
==> INSTALL_LIB=/usr/local/lib/gd
#Location where .h files should be installed by "make install".
==> INSTALL_INCLUDE=/usr/local/include/gd
[...]
Then, in order to successfully compile php, you need to use :
./configure [...] --with-gd=/path/to/gd
configure looks for the two files it needs : "gd.h" and "gd.(a|so)",
in /path/to/gd/lots_of_different_subdirs :
$cat ./configure
[...]
test -f $withval/include/gd1.3/gd.h && GD_INCLUDE="$withval/include/gd1.3"
test -f $withval/include/gd/gd.h && GD_INCLUDE="$withval/include/gd"
test -f $withval/include/gd.h && GD_INCLUDE="$withval/include"
test -f $withval/gd1.3/gd.h && GD_INCLUDE="$withval/gd1.3"
test -f $withval/gd/gd.h && GD_INCLUDE="$withval/gd"
test -f $withval/gd.h && GD_INCLUDE="$withval"
test -f $withval/lib/libgd.so && GD_LIB="$withval/lib"
test -f $withval/lib/gd/libgd.so && GD_LIB="$withval/lib/gd"
test -f $withval/lib/gd1.3/libgd.so && GD_LIB="$withval/lib/gd1.3"
test -f $withval/libgd.so && GD_LIB="$withval"
test -f $withval/gd/libgd.so && GD_LIB="$withval/gd"
test -f $withval/gd1.3/libgd.so && GD_LIB="$withval/gd1.3"
test -f $withval/lib/libgd.a && GD_LIB="$withval/lib"
test -f $withval/lib/gd/libgd.a && GD_LIB="$withval/lib/gd"
test -f $withval/lib/gd1.3/libgd.a && GD_LIB="$withval/lib/gd1.3"
test -f $withval/libgd.a && GD_LIB="$withval"
test -f $withval/gd/libgd.a && GD_LIB="$withval/gd"
test -f $withval/gd1.3/libgd.a && GD_LIB="$withval/gd1.3"
[...]
Given the above INSTALL_LIB and INSTALL_INCLUDE, the right option
to give to php's configure script is : --with-gd=/usr/local
Bonne chance ;-)
Flavien Lebarbé
-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Andrei Zmievski: "[PHP4BETA] cvs: /php4 NEWS"
- Previous message: rasmus <email protected>: "Re: [PHP4BETA] libgd and png"
- In reply to: Bruno Ricci: "[PHP4BETA] libgd and png"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

