For Programmers: Free Programming Magazines  


Home > Archive > PHP Installation > September 2007 > Configuring PHP 5.2.3 on Fedora Core 5, 64-bit for compilation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Configuring PHP 5.2.3 on Fedora Core 5, 64-bit for compilation
Rob Egan

2007-09-20, 7:02 pm

How do you configure PHP 5.2.3 to look under /usr/lib64 for the libjpeg.soand
libpng.so files, and under /usr/include for gd.h and png.h? I have tried
setting the --prefix, --exec-prefix, --includedir, --libdir, and
--with-libdir flags to the right values, but it seems to always want to look
for them in /usr/local/lib regardless of what I set. Can someone explain how
to do this? I'd rather not make a bunch of unnecessary symbolic links to
that directory to make it all work. Thanks!

Here is the configure string I use (yes, I know the --prefix, --exec-prefix,
--libdir values, etc don;t work. that's why I am asking for help):

# ./configure --prefix=/usr/local --exec-prefix=/usr/lib64
--includedir=/usr/include --with-libdir=/usr/lib64 --sysconfdir=/etc/php
--with-mysql=/usr/local/mysql --with-apxs=/usr/local/apache/bin/apxs
--with-gd=/usr/lib64 --with-jpeg-dir=/usr/lib64 --with-zlib=/usr
--enable-gd-native-ttf --with-png-dir --with-ttf-dir --with-freetype-dir
--with-xpm --enable-mbstring --with-pear
--with-mysqli=/usr/local/mysql/bin/mysql_config --with-mm
--enable-track-vars

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com