Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 37209 invoked from network); 7 Nov 2007 22:40:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Nov 2007 22:40:36 -0000 Received: (qmail 23380 invoked by uid 500); 7 Nov 2007 22:40:12 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 23362 invoked by uid 500); 7 Nov 2007 22:40:12 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 23350 invoked by uid 99); 7 Nov 2007 22:40:12 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 14:40:12 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of campbell@on2.com designates 66.162.65.131 as permitted sender) Received: from [66.162.65.131] (HELO on2.com) (66.162.65.131) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2007 22:40:48 +0000 Message-ID: <47323EB4.7060709@on2.com> Date: Wed, 07 Nov 2007 17:39:48 -0500 From: Daniel Campbell User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: users@httpd.apache.org References: <4730EFAC.7010602@on2.com> <4731BA00.2070109@t-online.de> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-On2-MailScanner(i): Found to be clean X-On2-MailScanner-From: campbell@on2.com X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] dbd and mysql in apache 2.2.6 I did the following but get a configure error with --with-apr=../apr Any Ideas? Thanks, Dan 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/ build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#cat ../INSTALL.MySQL The MySQL driver is not distributed from apache.org due to licensing issues. If you wish to build the driver, download apr_dbd_mysql.c from http://apache.webthing.com/database/ 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 apache.org, 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. build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util/dbd#wget http://apache.webthing.com/database/apr_dbd_mysql.c --17:36:22-- http://apache.webthing.com/database/apr_dbd_mysql.c => `apr_dbd_mysql.c' Resolving apache.webthing.com... 195.50.92.131 Connecting to apache.webthing.com[195.50.92.131]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 18,999 [text/plain] 100%[========================================================================================>] 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 .. build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#./buildconf 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/buildconf.sh ... Copying libtool helper files ... Incorporating /usr/share/aclocal/libtool.m4 into aclocal.m4 ... Creating config.h.in ... autoheader: WARNING: Using auxiliary files such as `acconfig.h', `config.h.bot' autoheader: WARNING: and `config.h.top', to define templates for `config.h.in' autoheader: WARNING: is deprecated and discouraged. autoheader: autoheader: WARNING: Using the third argument of `AC_DEFINE' and autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template without autoheader: WARNING: `acconfig.h': autoheader: autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader: [Define if a function `main' is needed.]) autoheader: autoheader: WARNING: More sophisticated templates can also be produced, see the autoheader: WARNING: documentation. Creating configure ... rebuilding rpm spec file build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util#./configure --with-apr=../apr 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. build_machine:/usr/local/src/httpd-2.2.6/srclib/apr-util# 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 http://apache.webthing.com/database/ 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 for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org