Building MySQL-5.1.66 on Debian from the sources

If for some crazy reason you want to do this and you get bitten by:

/bin/rm: cannot remove `libtoolT’: No such file or directory

then change your configure command to:

env RM=”/bin/rm -f” ./configure –configure-options-here

Debian Squeeze comes with MySQL 5.1.66


Debian Sarge and php4-mysql

I was bitten by this lately, so I post it here as a hint (it may bite you too):

You use apt on your Debian/Sarge to install apache2, mysql, php4 and of course you also install php4-mysql. One should expect that after:

apt-get install php4-mysql

you can connect immediately from your php script to a MySQL database. Calling simply phpinfo() will prove you wrong because of a minor detail: You must add the following line

at /etc/php4/apache2/php.ini and then issue an apache2ctl graceful .

Now you are OK.