Spence <mailto:scintilla7@xxxxxxxxx> wrote: ... > I then downloaded apr_dbd_mysql.c, ran buildconf and then followed > the instructions on http://httpd.apache.org/docs/2.2/install.html for > manually building APR/APR-Utils. I recompiled Apache with the > --with-apr and --with-apr-utils flags, but I still receive > the error message when attempting to start apache. > > I'm using the default httpd.conf file with no DBD directives. > If I attempt to set the DBDDriver directive in httpd.conf, I receive > the error message: DBD: No driver for mysql > and Apache fails to start. > > Can anyone help shed some light on this? I actually had to modify a few files to get things working. - In apr-util-1.2.7, dbd/apr_dbd_mysql.c. The mysql.h and errmsg.h files couldn't be found. I have this now: /* #ifdef HAVE_MYSQL_H #include <mysql.h> #include <errmsg.h> #elif defined(HAVE_MYSQL_MYSQL_H) #include <mysql/mysql.h> #include <mysql/errmsg.h> #endif */ #include "/usr/local/include/mysql/mysql.h" #include "/usr/local/include/mysql/errmsg.h" -> buildconf -> configure - In apr-util-1.2.7, include/apu.h. For some reason MySQL support was disabled after configure. I changed it to: #define APU_HAVE_MYSQL 1 - In apr-util-1.2.7, Makefile: I added some information: INCLUDES = [...] -I/usr/local/include/mysql APRUTIL_LDFLAGS = [...] -L/usr/local/lib/mysql APRUTIL_LIBS = [...] -lmysqlclient_r -> make -> make install -> compile apache Now, I'm sure this is surely not the correct solution but I'm not a C programmer, it compiled and works right now. Grts, Rob --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx