From:             [EMAIL PROTECTED]
Operating system: RedHat Linux 2.2.19-7.0.16
PHP version:      4.2.3
PHP Bug Type:     *Configuration Issues
Bug description:  Using --PREFIX=/usr for MySQL & PHP breaks?

Hey Sascha ;

I had to get PHP upgraded for a client, and had some "fun" with configure.
:-)

I don't have the actual configure line for MySQL, but they managed to
get:

/usr/
  /include/mysql/*.h
  /lib/mysql/*.o

and they've pretty consistently used --PREFIX=/usr

Then when I did --PREFIX=/usr in the PHP ./configure, the make process
would end up not putting -L/usr/lib/mysql into the library path thingies.

I had to edit Makefile by hand and tack it on at the end every time.

Also, when doing "make install" it seemed like all the .so shared library
files were not getting installed where expected.

That, however, could easily be my fault, as I'm not quite sure which one
of the options to "configure" means "where PHP's libraries go" and they
wanted them in /usr/lib/php4

Just moved them there by hand and then it worked.

The amazing thing is that I'm starting to sort of half-understand how this
configure process works.  Scary. :-)

PS  There doesn't seem to be an automated way to --enable-mailparse, and
you have to do phpize/configure/make/buildconf for the PEAR stuff to work.
 Some instructions make it sound like that's supposed to be that way, but
it seems pretty awkward to me, the canonical naive user.  If all PEAR
modules need that, and configure can't "just do it for me", I don't like
PEAR any more. :-)

THANKS!

Here's the full configure, in caes it matters.

./configure i386-redhat-linux \
--with-prefix=/usr  \
--exec-prefix=/usr  \
--bindir=/usr/bin  \
--sbindir=/usr/sbin  \
--sysconfdir=/etc  \
--datadir=/usr/share  \
--includedir=/usr/include  \
--libexecdir=/usr/libexec \
--libdir=/usr/lib \
--localstatedir=/var  \
--sharedstatedir=/usr/com  \
--mandir=/usr/share/man  \
--infodir=/usr/share/info  \
--prefix=/usr  \
--with-config-file-path=/etc  \
--enable-force-cgi-redirect  \
--disable-debug  \
--disable-rpath  \
--with-db3  \
--with-exec-dir=/usr/bin  \
--with-png-dir=/usr  \
--with-gd  \
--enable-gd-native-ttf  \
--with-ttf  \
--with-gdbm  \
--with-gettext  \
--with-ncurses  \
--with-gmp  \
--with-iconv  \
--with-jpeg-dir=/usr  \
--with-openssl  \
--with-png  \
--with-zlib \
--with-ftp  \
--with-layout=GNU  \
--enable-bcmath  \
--enable-magic-quotes  \
--enable-sockets  \
--enable-sysvsem  \
--enable-sysvshm  \
--enable-track-vars  \
--enable-trans-sid  \
--enable-wddx  \
--without-oci8  \
--with-imap=shared   \
--with-imap-ssl  \
--with-kerberos=/usr/kerberos  \
--with-mysql=/usr  \
--enable-memory-limit  \
--enable-bcmath  \
--enable-shmop  \
--enable-calendar  \
--enable-dbx  \
--with-curl=/usr  \
--with-apxs=/usr/sbin/apxs \
--with-pdflib=/usr \
--enable-mbstring \
--enable-mailparse



At one point, I'm pretty sure we tried the exact same configure line that
"worked" in 4.1.2, and it broke the same way.  Here is the 4.1.2 configure
line:

./configure i386-redhat-linux --with--prefix=/usr --exec-prefix=/usr
--bindir=/usr/bin --sbindir=/usr/
sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include
--libdir=/usr/lib --libexecdir=/
usr/libexec --localstatedir=/var --sharedstatedir=/usr/com
--mandir=/usr/share/man --infodir=/usr/shar
e/info --prefix=/usr --with-config-file-path=/etc
--enable-force-cgi-redirect --disable-debug --enable
-pic --disable-rpath --enable-inline-optimization --with-bz2 --with-db3
--with-exec-dir=/usr/bin --wit
h-png-dir=/usr --with-gd --enable-gd-native-ttf --with-ttf --with-gdbm
--with-gettext --with-ncurses -
-with-gmp --with-iconv --with-jpeg-dir=/usr --with-openssl --with-png
--with-pspell --with-regex=syste
m --with-ftp --with-zlib --with-layout=GNU --enable-bcmath
--enable-debugger --enable-magic-quotes --e
nable-safe-mode --enable-sockets --enable-sysvsem --enable-sysvshm
--enable-discard-path --enable-trac
k-vars --enable-trans-sid --enable-yp --enable-wddx --without-oci8
--with-imap=shared --with-imap-ssl
--with-kerberos=/usr/kerberos --with-ldap=shared --with-mysql=shared,/usr
--enable-memory-limit --enab
le-bcmath --enable-shmop --enable-versioning --enable-calendar
--enable-dbx --enable-dio --enable-mbst
ring --enable-mbstr-enc-trans --with-curl=/usr --with-apxs=/usr/sbin/apxs

-- 
Edit bug report at http://bugs.php.net/?id=20165&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20165&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20165&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20165&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20165&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20165&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20165&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20165&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20165&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20165&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20165&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20165&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20165&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20165&r=isapi

Reply via email to