I’ve found this really good user defined functions for using regular expressions in mysql
However when trying to instal I get can’t find mysql library
checking for mysqlbin... dirname: missing operand
Try `dirname --help' for more information.
checking for mysql_config... no
no
configure: error: "Can't find mysql library"
The site says If mysql is an unusual place, you might need to add --with-mysql=<mysql directory>/bin/mysql_config
I can’t find mysql_config
/var/log/mysql
/var/lib/mysql
/var/lib/mysql/mysql
/usr/share/mysql
/usr/lib/mysql
/etc/mysql/
I am using ubuntu lucid lynx, any sugestions would be greatly appreciated
EDIT the installation worked thanks to apt-get install libmariadbclient16-dev however now preg_replace('/i/','a','ia') returns 6161 instead of ii
You need to install libmysqlclient-dev ( or libmariadbclient16-dev if you wish ) to get mysql_config.