httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Campbell <>
Subject Re: [users@httpd] dbd and mysql in apache 2.2.6
Date Wed, 07 Nov 2007 22:39:48 GMT
I did the following but get a configure error with --with-apr=../apr 
Any Ideas?


build_machine:/usr/local/src#tar -xjf httpd-2.2.6.tar.bz2
build_machine:/usr/local/src#cd httpd-2.2.6
build_machine:/usr/local/src/httpd-2.2.6#cd srclib/apr
apr       apr-util
build_machine:/usr/local/src/httpd-2.2.6#cd srclib/apr-util/dbd/
The MySQL driver is not distributed from due to licensing issues.

If you wish to build the driver, download apr_dbd_mysql.c from
and copy it into the dbd directory.
Now run buildconf, followed by configure.

It is distributed under the GPL to conform with MySQL License terms
This means it cannot be distributed from, as that would
violate ASF policy.

Using the driver with APR and Apache is of course allowed,
and there is no problem with a third party bundling the driver,
provided you respect both the ASF and GPL licenses.
            => `apr_dbd_mysql.c'
Connecting to[]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 18,999 [text/plain]


18,999       115.34K/s

17:36:23 (114.69 KB/s) - `apr_dbd_mysql.c' saved [18999/18999]

build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#cd ..

Looking for apr source in /usr/local/src/httpd-2.2.6/srclib/apr
Creating include/private/apu_config.h ...
Creating configure ...
Generating 'make' outputs ...
Invoking xml/expat/ ...
Copying libtool helper files ...
Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ...
Creating ...
autoheader: WARNING: Using auxiliary files such as `acconfig.h', 
autoheader: WARNING: and `', to define templates for 
autoheader: WARNING: is deprecated and discouraged.
autoheader: WARNING: Using the third argument of `AC_DEFINE' and
autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template 
autoheader: WARNING: `acconfig.h':
autoheader:             [Define if a function `main' is needed.])
autoheader: WARNING: More sophisticated templates can also be produced, 
see the
autoheader: WARNING: documentation.
Creating configure ...
rebuilding rpm spec file
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking for working mkdir -p... yes
APR-util Version: 1.2.10
checking for chosen layout... apr-util
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
Applying apr-util hints file rules for i686-pc-linux-gnu
checking for APR... configure: error: the --with-apr parameter is 
incorrect. It must specify an install prefix, a build directory, or an 
apr-config file.

Res wrote:
> Daniel Campbell schrieb:
>> Has anyone had any luck building mysql into apache version 2.2.6?  I 
>> am able to get it to compile fine but if I "ldd httpd" there is no 
>> mysql library linked in and if I try and use the "DBDriver mysql" in 
>> the httpd.conf file I get "DBD: No driver for mysql" when starting it.
>> I have followed the INSTALL.MYSQL instructions under the 
>> srclib/apr-util directory which says to download the apr_dbd_mysql.c 
>> file from the website to the 
>> srclib/apr-util/dbd directory and run the main buildconf and 
>> configure.  My configure is long but should work.  I have even tried 
>> it with a very short basic one to no avail.
> Daniel, can you indicate what steps you are doing for us to see that way 
> we can advise you further.
> Should be... firstly, you may need to run a dummy ./configure in the 
> main source dir (to generate some other stuff it needs, if this is a 
> fresh install)
> cd httpd-2.2.6/srclib/apr-util/dbd
> get the apr_dbd_mysql.c (which I read you have) into this directory
> cd ..    (should now be in httpd-2.2.6/srclib/apr-util)
> ./buildconf
> ./configure --with-apr=../apr
> cd ../../    (back to main source dir) and run your full configure line, 
> make, install then run the test.

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message