Can't get GD 1.8 to install right with PHP 4.0.3pl1
| From: | Steve Lane | Date: | Mon, 06 Nov 2000 04:25:38 +0000 |
| Subject: | Can't get GD 1.8 to install right with PHP 4.0.3pl1 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-625@lists.php.net to get a copy of this message | ||
Hello, all:
My inaugural question on this list -- not lightly asked, as I have worked on
this for three solid days and read every source of info I could find, have
even gotten down to read the PHP configure script, without much luck.
All I'm trying to do is get gd to install with PHP. TrueType support looked
nice so I'm trying to get FreeType included as well.
Platform is LinuxPPC, kernel 2.2.15pre3, gcc 2.95.2. PHP 4.0.3pl1. Gd 1.8.3
Here's what I did:
1) Built zlib, libpng, libjpeg and libttf (FreeType). Built them as shared
where possible. Built gd itself; uncommented lines in the Makefile to tell
gd about all the extra libraries:
CFLAGS=-O -DHAVE_JPEG -DHAVE_LIBTTF
LIBS=-lm -lgd -lpng -lz -ljpeg -lttf
Left the include and library directories alone.
GD seemed to build fine.
I end up with /usr/local/include like this:
drwxrwxr-x 5 root root 4096 Nov 5 15:10 .
drwxr-xr-x 16 root root 4096 Nov 3 12:09 ..
drwxrwxr-x 2 root root 4096 Nov 5 14:20 X11
drwxrwxr-x 2 root root 4096 Nov 5 15:00 freetype
-rw-r--r-- 1 root root 9326 Nov 5 15:10 gd.h
-rw-r--r-- 1 root root 917 Nov 5 15:10 gd_io.h
-rw-r--r-- 1 root root 2673 Nov 5 15:10 gdcache.h
-rw-r--r-- 1 root root 490 Nov 5 15:10 gdfontg.h
-rw-r--r-- 1 root root 488 Nov 5 15:10 gdfontl.h
-rw-r--r-- 1 root root 451 Nov 5 15:10 gdfontmb.h
-rw-r--r-- 1 root root 452 Nov 5 15:10 gdfonts.h
-rw-r--r-- 1 root root 484 Nov 5 15:10 gdfontt.h
-rw-r--r-- 1 root root 1260 Nov 5 10:40 jconfig.h
-rw-r--r-- 1 root root 13936 Nov 5 10:40 jerror.h
-rw-r--r-- 1 root root 12458 Nov 5 10:40 jmorecfg.h
-rw-r--r-- 1 root root 46205 Nov 5 10:40 jpeglib.h
drwxrwxr-x 7 root root 4096 Sep 11 11:13 php
-rw-r--r-- 1 root root 124394 Nov 5 10:27 png.h
-rw-r--r-- 1 root root 35093 Nov 5 10:27 pngconf.h
-rw-r--r-- 1 root root 7810 Nov 5 10:18 zconf.h
-rw-r--r-- 1 root root 40898 Nov 5 10:18 zlib.h
and /usr/local/lib like this:
[root@mysql lib]# ls -la
total 1728
drwxr-xr-x 4 root root 4096 Nov 5 15:10 .
drwxr-xr-x 16 root root 4096 Nov 3 12:09 ..
drwxrwxr-x 3 root root 4096 Nov 3 11:57 cvs
-rw-r--r-- 1 root root 209444 Nov 5 15:10 libgd.a
-rw-r--r-- 1 root root 186048 Nov 5 10:40 libjpeg.a
-rwxr-xr-x 1 root root 475 Nov 5 10:40 libjpeg.la
lrwxrwxrwx 1 root root 17 Nov 5 10:40 libjpeg.so ->
libjpeg.so.62.0.0
lrwxrwxrwx 1 root root 17 Nov 5 10:40 libjpeg.so.62 ->
libjpeg.so.62.0.0
-rwxr-xr-x 1 root root 158844 Nov 5 10:40 libjpeg.so.62.0.0
-rw-rw-r-- 1 root root 241528 Nov 5 10:27 libpng.a
lrwxrwxrwx 1 root root 11 Nov 5 10:27 libpng.so ->
libpng.so.2
lrwxrwxrwx 1 root root 17 Nov 5 10:27 libpng.so.2 ->
libpng.so.2.1.0.8
-rwxr-xr-x 1 root root 258779 Nov 5 10:27 libpng.so.2.1.0.8
-rwxr-xr-x 1 root root 632 Nov 5 15:00 libttf.la
lrwxrwxrwx 1 root root 15 Nov 5 15:00 libttf.so ->
libttf.so.2.2.0
lrwxrwxrwx 1 root root 15 Nov 5 15:00 libttf.so.2 ->
libttf.so.2.2.0
-rwxr-xr-x 1 root root 553324 Nov 5 15:00 libttf.so.2.2.0
lrwxrwxrwx 1 root root 13 Nov 5 10:18 libz.so ->
libz.so.1.1.3
lrwxrwxrwx 1 root root 13 Nov 5 10:18 libz.so.1 ->
libz.so.1.1.3
-rwxr-xr-x 1 root root 71732 Nov 5 10:18 libz.so.1.1.3
drwxrwxr-x 11 root root 4096 Sep 11 11:13 php
-rw-r--r-- 1 root root 20133 May 25 11:30 php.ini
Among other things I notice it is reading the PHP /ext/gd/gd.c directory.
Why? I built GD, and told configure where to find it. In general I'm not
really sure how the /ext subdirectories work.
If anyone has any ideas, I'd be really grateful. I have been over every
option, have tweaked makefiles, pawed through the config script, and I
cannot even figure out what configure and make are trying to do here. I've
built these libs a dozen times, and run configure till I'm blue in the face.
I think I know what I'm doing, and I still can't make it work.
Any ideas?
----------
Steve Lane
Senior Project Manager
Chris Moyer Consulting Inc., Chicago
833 W. Chicago Ave. Suite 203
Chicago, IL 60622
312 433-2421 (V) slane@fmpro.com
312 850-3930 (F) http://www.fmpro.com
***
Beginner to Advanced FileMaker & Lasso training.
For class and registration information, please visit
http://www.fmpro.com/cmc_classes/,
email training@fmpro.com, or call Josie Graham at 403-467-9301.
***