php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20165 Using --PREFIX=/usr for MySQL & PHP breaks?
Submitted: 2002-10-30 01:07 UTC Modified: 2002-11-14 01:47 UTC
From: ceo at l-i-e dot com Assigned:
Status: No Feedback Package: *Configuration Issues
PHP Version: 4.2.3 OS: RedHat Linux 2.2.19-7.0.16
Private report: No CVE-ID: None
 [2002-10-30 01:07 UTC] ceo at l-i-e dot com
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-10-30 07:01 UTC] sniper@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip
 [2002-11-14 01:47 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC