note 7177 deleted from ref.image by betz

From: Date: Tue, 24 Aug 2004 22:11:01 +0000
Subject: note 7177 deleted from ref.image by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75226@lists.php.net to get a copy of this message
Note Submitter: rick at e-possibility dot com ---- FINALLY -- here is what I had to do to compile PHP with image creation on FreeBSD4.0; I hope this is at least somewhat helpful to Linux users also: (Notes: I used gmake instead of make, but if you don't have gmake, it should still work with 'make' and 'make install'. I used the DSO install method with Apache; I have not yet done this as a static linked install) 1. Assume X-windows, libpng, mysql, gmake and automake are already installed. 2. Install libjpeg (from ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz ) a) ./configure --enable-shared b) gmake, gmake install 3. Install Freetype 1.3.1 (from http://www.freetype.org) a) ./configure --enable-shared --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib b) gmake, gmake install c) if freetype creates a freetype/ directory inside /usr/local/lib, copy all contents into /usr/local/lib 4. Install zlib 1.1.3 (from http://www.info-zip.org/pub/infozip/zlib/) a) ./configure --shared b) gmake, gmake install 5. Install gd-1.8.3 (from http://www.boutell.com/gd) a) edit Makefile for correct include and lib dirs, and uncomment the lines that enable all options, while commenting out the default lines b) edit gd.c; remove 1st three lines (if - endif for malloc.h) c) edit gdcache.h and ...php-src/ext/gd/gdcache.h (if exists) and replace <malloc.h> with <stdlib.h> d) copy /usr/X11R6/include/X11 to /usr/X11R6/include/X11/X11 (gd looks recursively inside X11 to X11/*) e) gmake, gmake install 6. Install apache-1.3.12 a) ./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max b) gmake, gmake install 7. Install PHP 4.0.1pl2 a) ./configure --prefix=/usr/local/php4 --with-mysql --with-apxs=/usr/local/apache/bin/apxs --enable-track-vars --with-gd=/usr/local/ --with-jpeg-dir=/usr/local --with-xpm-dir=/usr/X11R6 --with-zlib-dir=shared b) gmake, gmake install c) sometimes I have found you need to reboot the system completely instead of just restart httpd have fun ;-)

« previous php.notes (#75226) next »