[SOLVED] Compiling mod_auth_mysql Apache module on ArchLinux
Hello,
I've never compiled/built/installed any Apache module before, and I just can't seem to get it working on ArchLinux. I got the source code from here: http://sourceforge.net/projects/modauth Then I tried doing this... Code:
apxs -c -L/usr/lib/mysql -I/usr/include/mysql -lmysqlclient -lm -lz mod_auth_mysql.c Quote:
I've googled like crazy, and I cannot find a solution. If anybody can figure this out, much appreciated, I wish I installed another OS and I haven't been able to figure this out for weeks. |
Hi and welcome to LQ,
You didn't say what is your apache version and the module version you're trying to install. For apache-2.2.x and mod_auth_mysql-3.0.0 you'll need this patch to compile the module. Regards |
Yes it was the newest version.
That did it, thanks a ton dude. You wouldn't believe how many things I tried. I even tried a patch prior to that one, but it was the wrong one apprently. Thanks again. Maybe I can help some other people here in the future... |
Hi There,
I tried to patch the file by copying the patch (as patch.txt) and running patch - Code:
$> patch -p0 < patch.txt Edit: by the way, I am using ubuntu server 10, and apache 2. I tried to use apxs, but it wasn't found. apxs2 was if I installed apache2-threaded-dev, so I did and ran the command: Code:
apxs2 -c -I /usr/include/mysql -l mysqlclient -l m -l z mod_auth_mysql.c ~Fahr |
@fahrvergnugen
I guess that mod_auth_mysql-3.0.0/mod_auth_mysql.c is not the original (maybe it's already patched somehow). You can download the original mod_auth_mysql-3.0.0 from here and run the same patch command to patch it. And yes, ubuntu names apxs as apxs2. Regards |
Well, that worked. I think I figured out the problem. I noticed that the patch file was looking in mod_auth_mysql-3.0.0/mod_auth_mysql-3.0.0.c so I moved the patch mack one directory and tried again. it worked. I feel incredibly dumb.
Thanks for the help. ~Fahr |
All times are GMT -5. The time now is 05:02 AM. |