You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fred McCann <fr...@automaticrootbeer.com> on 2006/02/18 19:49:09 UTC
[users@httpd] Trying to build apr_dbd_mysql on Apache 2.2.0 / OS X 10.4.5
I'm trying to build apr_dbd_mysql on on Apache 2.2.0 / OS X 10.4.5 so
I can use the mysql driver for mod_authn_dbd. I installed Apache2 via
darwin ports and I downloaded apr_dbd_mysql.c from http://
apache.webthing.com/svn/apache/apr/apr_dbd_mysql.c. I'm not sure that
I'm correctly building the module. I'm using this command:
/opt/local/apache2/bin/apxs -c apr_dbd_mysql.c -a -I /opt/local/
include/apr-1 -L /opt/local/lib
What I get for output is:
/opt/local/share/apr-1/build/libtool --silent --mode=compile gcc -
prefer-pic -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -
g -O2 -I/opt/local/include -I/opt/local/apache2/include -I/opt/local/
include/apr-1 -I/opt/local/include/apr-1 -I/opt/local/include -c -
o apr_dbd_mysql.lo apr_dbd_mysql.c && touch apr_dbd_mysql.slo
/opt/local/share/apr-1/build/libtool --silent --mode=link gcc -o
apr_dbd_mysql.la -rpath /opt/local/apache2/modules -module -avoid-
version apr_dbd_mysql.lo -a -I /opt/local/include/apr-1 -L /opt/
local/lib
ranlib: warning for library: .libs/apr_dbd_mysql.a the table of
contents is empty (no object file members in the library define
global symbols)
I've looked around for instructions on building apr_dbd_mysql and I
can't find anything on the web. Any help would be greatly appreciated.
- Fred
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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
Re: [users@httpd] Trying to build apr_dbd_mysql on Apache 2.2.0 / OS X 10.4.5
Posted by Nick Kew <ni...@webthing.com>.
On Saturday 18 February 2006 18:49, Fred McCann wrote:
> I'm trying to build apr_dbd_mysql on on Apache 2.2.0 / OS X 10.4.5 so
> I can use the mysql driver for mod_authn_dbd. I installed Apache2 via
> darwin ports and I downloaded apr_dbd_mysql.c from http://
> apache.webthing.com/svn/apache/apr/apr_dbd_mysql.c. I'm not sure that
> I'm correctly building the module. I'm using this command:
>
> /opt/local/apache2/bin/apxs -c apr_dbd_mysql.c -a -I /opt/local/
> include/apr-1 -L /opt/local/lib
apxs is for apache modules, not apr_util libraries.
See
http://svn.apache.org/viewcvs.cgi/apr/apr-util/trunk/INSTALL.MySQL?view=markup
--
Nick Kew
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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
[users@httpd] Re: Trying to build apr_dbd_mysql on Apache 2.2.0 / OS X 10.4.5
Posted by Fred McCann <fr...@automaticrootbeer.com>.
Thanks for the heads up. I rebuilt apr-1.2.2, apr-util-1.2.2, and
httpd-2.2.0 from source.
I copied apd_dbd_mysql.c to the dbd directory of apr-util-1.2.2 and
built it with the following commands:
./makeconf
./configure --with-apr=/usr/local/apr/bin/apr-1-config --with-expat=/
opt/local \
--with-iconv=/opt/local --with-berkeley-db=/opt/local \
--without-pgsql --with-mysql=/usr/local/mysql
make
make install
I didn't get any errors or warnings.
After that I built apache 2 with:
./makeconf
./configure \
--libdir=/opt/local/lib \
--with-expat=/opt/local \
--mandir=/opt/local/share/man \
--enable-mods-shared=all \
--enable-ssl \
--with-ssl=/opt/local \
--with-apr=/usr/local/apr/bin/apr-1-config \
--with-apr-util=/usr/local/apr/bin/apu-1-config \
--enable-deflate \
--enable-proxy \
--enable-proxy-connect \
--enable-proxy-http \
--enable-proxy-ftp make
make install
Again, with no problems. After all is said and done, I'm still
getting the same error when I start apache:
DBD: No driver for mysql
I assume that I'm building the drivers, as they appear to have been
compiled:
Fry:~/tmp/nw/apr-util-1.2.2 root# ls dbd
.libs apr_dbd_mysql.c
apr_dbd_pgsql.lo apr_dbd_sqlite2.o
apr_dbd.c apr_dbd_mysql.lo
apr_dbd_pgsql.o apr_dbd_sqlite3.c
apr_dbd.lo apr_dbd_mysql.o
apr_dbd_sqlite2.c apr_dbd_sqlite3.lo
apr_dbd.o apr_dbd_pgsql.c
apr_dbd_sqlite2.lo apr_dbd_sqlite3.o
Fry:~/tmp/nw/apr-util-1.2.2 root# ls dbd/.libs/
apr_dbd.o apr_dbd_mysql.o
apr_dbd_pgsql.o apr_dbd_sqlite2.o apr_dbd_sqlite3.o
I'm at a loss at this one. I followed the instructions in
INSTALL.MySQL, but I must have missed something along the way. Any
hints would be greatly appreciated.
- Fred
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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