php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2254 will not compile with --with-mysql=/usr/local/mysql
Submitted: 1999-09-06 23:46 UTC Modified: 1999-09-06 23:54 UTC
From: terry at dynavar dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 3.0.12 OS: Cobalt Linux
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: terry at dynavar dot com
New email:
PHP Version: OS:

 

 [1999-09-06 23:46 UTC] terry at dynavar dot com
I am compiling shared module and I get some strange error as included below, this is the configure script I ran:
./configure --with-apxs=/usr/sbin/apxs --with-config-file-path=/etc --with-mysql=/usr/local/mysql

It does compile without the --with-mysql directive just fine, however I need support for MySQL. It appears to not like the -W option in the apxs command as below.

thanks.


/usr/sbin/apxs -c -o libphp3.so -I. -I.  -Wl,'-rpath /usr/local/mysql/lib/mysql' ./mod_php3.c libmodphp3-so.a -L/usr/local/lib  -L/usr/local/mysql/lib/mysql -lmysqlclient                             -lgdbm  pcrelib/libpcre.a -lpam -lm -ldl -lcrypt -lnsl  -lresolv  -Lpcrelib -lpcre
apxs:Error: Unknown option: W
Usage: apxs -g -n <modname>
       apxs -q <query> ...
       apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>]
               [-L <libdir>] [-l <libname>] <files> ...
       apxs -i [-a] [-n <modname>] <dsofile> ...
make: *** [libphp3.so] Error 1
[root php-3.0.12]# 


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-06 23:54 UTC] rasmus at cvs dot php dot net
Like INSTALL.REDHAT says, you need at least Apache-1.3.4 for this to work.  Download the Apache-1.3.9
tarball and instal it with these flags:

./configure --with-layout=RedHat --enable-module=so
make
make install

Then do your PHP build like you did there.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Oct 10 23:00:01 2026 UTC