Results 11 to 20 of 26
At least that means that --with-gd=/usr/local/lib was correct (why did you think that it wouldn't, wassy?).
Anyway, try finding where gd.h should be. You can search for it in the ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 02-27-2003 #11Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
At least that means that --with-gd=/usr/local/lib was correct (why did you think that it wouldn't, wassy?).
Anyway, try finding where gd.h should be. You can search for it in the PHP source tree with this command:
Code:find -name "*.c" -exec egrep '#include <(.*/)?gd.h>' {} \;
- 02-27-2003 #12Just Joined!
- Join Date
- Feb 2003
- Posts
- 16
Using --with-gd=/usr/local/gd-2.0.11 stopped at some point, say point A, with the error:
Using --with-gd=/usr/local stopped at point B with the error:configure: error: Unable to find libgd.(a|so) anywhere under /usr/local/gd-2.0.11
When I tried using --with-gd=/usr/local/lib, it stopped somewhere between point A and point B (actually, in the line in lieu of the original error - in point A) and gave me the error:Cannot find header files under /usr/local
The file gd.h is not found in /usr/local/lib, but is found in /usr/local/gd-2.0.11/configure: error: Unable to find gd.h anywhere under /usr/local/lib
Just because --with-gd=/usr/local seems to go futher in the configuration I assumed this is the right way to go, but I may be wrong. Maybe its easier to somehow get it to find the gd.h when using --with-gd=/usr/local/lib ??
- 02-27-2003 #13Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
This has just gone too far. It should be this hard. Do this:
Then configure again using --with-gd=/usr/local/gd-2.0.11. If it doesn't work then, my hair will go white.Code:cd /usr/local/lib for lib in libgd.*; do ln -s ../lib/$lib ../gd-2.0.11/$lib; done
- 02-27-2003 #14Just Joined!
- Join Date
- Feb 2003
- Posts
- 16
I did what you suggested and I got this after running configure again with --with-gd=/usr/local/gd-2.0.11 and got the same thing:
Apparently, it ran the configuration as if I entered --with-gd=/usr/local since it did not complain about libgd.a/.so. It also found gd.h (which is also found when using --with-gd=/usr/local).configure: error: Cannot find header files under /usr/local
Damn GD to hell
- 02-27-2003 #15Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Try "make distclean" in the PHP directory and then reconfigure.
- 02-27-2003 #16Just Joined!
- Join Date
- Feb 2003
- Posts
- 16
[root@localhost php-4.3.1]# make distclean
make: *** No rule to make target `distclean'. Stop.
- 02-27-2003 #17Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Isn't it maintained with autoconf/automake? OK, make clean, then?
- 02-27-2003 #18Just Joined!
- Join Date
- Feb 2003
- Posts
- 16
same thing
- 02-27-2003 #19Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
This has gone far past "too bad". Can you upload that configure script to a server somewhere so that I may have a look at it?
- 02-27-2003 #20Just Joined!
- Join Date
- Feb 2003
- Posts
- 16
I don't have a place to upload it.
I just downloaded php v4.3.1 from php.net ( http://www.php.net/get/php-4.3.1.tar.bz2/from/a/mirror ) to /usr/local
then I did:
Same with GD:Code:cd /usr/local tar -xvzf php-4.3.1.tar.gz cd php-4.3.1 ./configure \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-config-file-path=/usr/local/apache/conf \ --enable-versioning \ --with-mysql=/usr/local \ --enable-ftp \ --with-gd=/usr/local/ \ --with-zlib \ --enable-bcmath \ --disable-debug \ --enable-memory-limit=yes \ --enable-track-vars
I downloaded http://www.boutell.com/gd/http/gd-2.0.11.tar.gz to /usr/local
then:
I did not modify any files. I first did GD then attempted PHP.Code:cd /usr/local tar -xvzf gd-2.0.11.tar.gz cd gd-2.0.11 ./configure make make install



