[Apachetoolbox-devel] ATB 1.5.59: mod_auth_mysql
Brought to you by:
bryanandrews
From: Toni M. <su...@oe...> - 2002-09-19 11:19:25
|
Hello, [ resent, since I didn't notice where this was lost ] I've stumbled over adding mod_auth_mysql to a local Apache (on Debian...). The problem is with detecting the lib. The context suggests that libmysqlclient.so is needed, and under Debian this is installed in /usr/lib. So I hacked a patch for bin/mod_auth_mysql which you find attached. Hope this helps ;) If not, please let me know... The patch was against 1.5.59, but it didn't seem to have made it into 1.5.61. Best, --Toni++ --- mod_auth_mysql 2002/09/08 21:47:34 1.1 +++ mod_auth_mysql 2002/09/08 21:52:34 @@ -27,6 +27,10 @@ test -d $LOCAL_PATH/lib/mysql && MYSQLLIB=$LOCAL_PATH/lib/mysql test -d $LOCAL_PATH/mysql/lib/mysql && MYSQLLIB=$LOCAL_PATH/mysql/lib/mysql test -d /usr/lib/mysql && MYSQLLIB=/usr/lib/mysql + CNT=`ls /usr/lib/libmysqlclient*|wc -l` + if [ ${CNT} -ne 0 ]; then + MYSQLLIB=/usr/lib + fi if [ $MYSQLLIB ]; then echo " [DONE]"; else echo " [FAILED]"; exit; fi |