Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I had to tweak this slightly, so it would run on a Mac mini core duo (not capable of 64-bit code), essentially, you just have to omit the references to the 64 bit architecture:</p> <pre><code>$ sudo apxs -c -i -a -D lmysqlclient -lmysqlclient -lm -lz -I/usr/local/mysql/include/ \ -L/usr/local/mysql/lib/ mod_auth_mysql.c </code></pre> <p>If you get an error not finding cc of the XCode Toolchain:</p> <blockquote> <p>env: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain/usr/bin/cc: No such file or directory apxs:Error: Command failed with rc=65536</p> </blockquote> <p>then you either have to install XCode at all, or symlink to the default toolchain:</p> <pre><code>$ sudo ln -s /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.8.xctoolchain </code></pre> <p>Also: Nils Preusker's Blog is down. You might find the answer still in Google's caches. Alternatively, I have pasted the relevant portions here:</p> <p>Compiling and Installing mod_auth_mysql on OS X 10.5.6</p> <p>April 17th, 2009 by nils The apche module mod_auth_mysql makes it possible to use a MySQL database instead of e.g. a passwd file. There is an installer of the module for Mac OS X 10.4, but no installation package or port for Mac OS X 10.5 or later. I played around with the sources a little bit and finally managed to get it to compile and apache to start without error messages. I’ve created a diff file to patch mod_auth_mysql.c. The following steps explain how to apply the patch, compile the module and test your apache configuration.</p> <p>We’ll first create a src folder in your user directory, download mod_auth_mysql and expand it:</p> <pre><code>$ mkdir ~/src $ cd ~/src $ curl -O http://puzzle.dl.sourceforge.net/sourceforge/\ modauthmysql/mod_auth_mysql-3.0.0.tar.gz $ tar zxvf mod_auth_mysql-3.0.0.tar.gz </code></pre> <p>Now you have the sources of the module in the folder mod_auth_mysql-3.0.0. Before we can compile it, the patch has to be applied. Here is the diff file <a href="http://www.nilspreusker.de/wp-content/uploads/2009/04/mod_auth_mysql.diff" rel="nofollow">mod_auth_mysql</a>, save it to</p> <p>~/src/mod_auth_mysql-3.0.0/mod_auth_mysql.diff To apply the patch, we change to the sources directory and execute the unix patch program that takes the original file and applies the diff file as patch:</p> <pre><code>$ cd mod_auth_mysql-3.0.0 $ patch mod_auth_mysql.c mod_auth_mysql.diff </code></pre> <p>continue with either 32 or 64 bit code...</p> <p>In case the diff file goes missing, here it is...</p> <pre><code>209c209 &lt; #define STRCAT ap_pstrcat --- &gt; #define STRCAT apr_pstrcat 592c592 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlhost), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlhost), 596c596 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlport), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlport), 600c600 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlsocket), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlsocket), 604c604 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqluser), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqluser), 608c608 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlpasswd), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlpasswd), 612c612 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlDB), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlDB), 616c616 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlpwtable), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlpwtable), 620c620 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlgrptable), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlgrptable), 624c624 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlNameField), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlNameField), 628c628 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlGroupField), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlGroupField), 632c632 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlGroupUserNameField), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlGroupUserNameField), 636c636 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlPasswordField), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlPasswordField), 640c640 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlEncryptionField), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlEncryptionField), 644c644 &lt; (void*) APR_XtOffsetOf(mysql_auth_config_rec, mysqlSaltField), --- &gt; (void*) APR_OFFSETOF(mysql_auth_config_rec, mysqlSaltField), 652c652 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlAuthoritative), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlAuthoritative), 656c656 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlNoPasswd), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlNoPasswd), 660c660 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlEnable), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlEnable), 664c664 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlUserCondition), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlUserCondition), 668c668 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlGroupCondition), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlGroupCondition), 672c672 &lt; (void *) APR_XtOffsetOf(mysql_auth_config_rec, mysqlCharacterSet), --- &gt; (void *) APR_OFFSETOF(mysql_auth_config_rec, mysqlCharacterSet), </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload