Question : Need help building an Apache module

I'm trying to build an apache module "mod_auth_mysql" so I can password protect a directory and have the users and passwords stored in MySQL.  http://support.modwest.com/content/1/161/en/how-do-i-protect-a-directory-with-mod_auth_mysql.html
I downloaded mod_auth_mysql 3.0

As per the build instructions...
If the mysql.h header file cannot be found, add the -I option to specify the
directory where mysql.h can be found.

If the mysqlclient library cannot be found, add the -L option to specify the
directory where libmysqlclient.so can be found.  

Example:
apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c

My command...
apxs -c -L/usr/local/mysql-5.1.47-osx10.6-x86/lib -I/usr/local/mysql-5.1.47-osx10.6-x86/include -lmysqlclient -lm -lz mod_auth_mysql.c

I get the error...
i686-apple-darwin10-gcc-4.2.1: mod_auth_mysql.c: No such file or directory

I cd to the folder where the mod_auth_mysql.c file lives and get the same error.

Can anyone help?

Answer : Need help building an Apache module

It looks like you may have the wrong version of mysql installed, since it's seeing a 32 bit version and expecting a 64 bit version.  If your mysql installation is working, there is a chance that the file you built will work since these are just warnings - you could try it.  Just follow the instructions on installing further.  The file is mod_auth_mysql.lo.
Random Solutions  
 
programming4us programming4us