Click to See Complete Forum and Search --> : PHP configure libjpeg error


Anon
06-30-2002, 03:05 AM
I m installing PHP with support for a GD graphics library (following instructions on this webmonkey site: http://hotwired.lycos.com/webmonkey/01/21/index4a_page2.html?tw=programming

i successfully installed all the prerequisites, libjpeg, libpng, libgd, freetype, and zlib. but when it came time to install PHP, the configure script failed. i told it this:

code:



./configure --with-gd=/sw/lib --with-jpeg-dir=/sw/lib --with-zlib-dir=/sw/lib





and it told me this:


code:



checking for the location of libjpeg... yes
configure: error: libjpeg.(a|so) not found.





incidentally, this file does indeed exist here: /sw/lib/libjpeg.a

so why not found? thanks for any help.

BTW i m running OSX 10.1.5

Anon
07-02-2002, 06:42 AM
=================> zlib-1.1.3
./configure
make test
make install

=================> libpng-1.2.0
copy makefile from dir libpng-1.2.3/scripts
make test
make install

=================> jpegsrc.v6b.tar.gz (at end, gmake install-lib)
./configure
make
make test
make install
make install-lib


=================> gd-1.8.4.tar.gz (see note at bottom on reasoning for numerous -I)
edit 'Makefile'
CFLAGS=-O -DHAVE_LIBXPM -DHAVE_LIBPNG -DHAVE_LIBJPEG -DHAVE_LIBFREETYPE
LIBS=-lgd -lpng -lz -ljpeg -lfreetype -lm
INCLUDEDIRS=-I. -I/usr/include/freetype2 -I/usr/include/X11 \
-I/usr/X11R6/include/X11 -I/usr/local/include \
-I/usr/local/include/freetype2 -I/usr/X11R6/include \
-I/usr/local/include/freetype2/freetype
LIBDIRS=-L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib
make
make install

=================> cd ../apache_1.3.23
./configure --prefix=/usr/local/apache --enable-module=most --enable-shared=max
make

make certificate
make install

=================> PHP
./configure --enable-safe-mode \
--with-apxs=/usr/local/apache/bin/apxs \
--with-mysql \
--enable-track-vars \
--enable-ftp \
--with-gd=/home/1/gd-1.8.4 \
--with-png-dir=/home/1/libpng-1.2.3 \
--with-zlib-dir=/home/1/zlib-1.1.4 \
--with-jpeg-dir=/home/1/jpeg-6b \
--enable-trans-sid \
--disable-debug

make
make install