You should not have had to create any links if MySQL was properly built and installed.
Here's my Terminal command: ./configure --prefix=/usr/local/php5 --with-apxs=/usr/sbin/apxs --with-mysqli=/usr/local/mysql/bin/mysql_config --enable-mbstring --enable-soap
Here's the end of the Terminal message:
...checking whether to include mime_magic support... no
checking for MING support... no
checking for mSQL support... no
checking for MSSQL support via FreeTDS... no
checking for MySQL support... no
checking for specified location of the MySQL UNIX socket... no
checking for MySQLi support... yes
checking whether to enable embedded MySQLi support... no
checking for mysql_set_server_option in -lmysqlclient... no
configure: error: wrong mysql library version or lib not found. Check config.log for more information.
Is MySQL installed in /usr/local/mysql?
Does /usr/local/mysql/bin/mysql_config exist?
Provide the output of the following command:
sudo find /usr/local/mysql
Here's the end of the config.log message:
...configure:56915: checking for MING support
configure:58147: checking for mSQL support
configure:58660: checking for MSSQL support via FreeTDS
configure:59313: checking for MySQL support
configure:59360: checking for specified location of the MySQL UNIX socket
configure:60526: checking for MySQLi support
configure:60573: checking whether to enable embedded MySQLi support
configure:60724: checking for mysql_set_server_option in -lmysqlclient
configure:60743: gcc -o conftest -I/usr/include -g -O2 -no-cpp-precomp -L/usr/local/mysql/lib/mysql -L/usr/local/mysql/lib/mysql -liconv -L/usr/lib -lmysqlclient -lz -lm conftest.c -lmysqlclient -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm 1>&5
/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: can't locate file for: -lmysqlclient
collect2: ld returned 1 exit status
configure: failed program was:
#line 60732 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char mysql_set_server_option();
int main() {
mysql_set_server_option()
; return 0; }
MAC OSX 10.4.11
Apache 1.3
mysql Ver 14.12 Distrib 5.0.45, for apple-darwin8.5.1 (i686) using readline 5.0