Re: libgd and png

From: Date: Mon, 31 Jan 2000 14:07:38 +0000
Subject: Re: libgd and png
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-9587@lists.php.net to get a copy of this message
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é

« previous php.version4 (#9587) next »