- Joined
- Feb 27, 2003
- Messages
- 9,158
Hello,
MySQL 5.5.11 has been released.
http://dev.mysql.com/doc/refman/5.5/en/news-5-5-11.html
There are a few issues with this in that they've changed the libmysqlclient.so.# version from 16 to 18. For most OSs this shouldn't be an issue, but on Debian 5 and 6, you may need to use this:
To try and catch this error, I've added the following code to custombuild for Debian in the doMySQL section
I don't usually like relying on libraries that DA wasn't compiled against, but we don't have much choice. For now, I'll continue to compile DA on Debian 5/6 with libmysqlclient.so.16. The code should handle both cases, in case DA is compiled with so.18, but you've still got mysql 5.5.9 or older.
I've also added code to the update.sh for that similar even, if DA is updated and the new DA is linked to so.18. This may not even get that far as the dataskq wouldn't even work to call the update.sh.
I've tested the above, and it does work, but the ride may get bumpy on Debian systems.
John
MySQL 5.5.11 has been released.
http://dev.mysql.com/doc/refman/5.5/en/news-5-5-11.html
There are a few issues with this in that they've changed the libmysqlclient.so.# version from 16 to 18. For most OSs this shouldn't be an issue, but on Debian 5 and 6, you may need to use this:
Code:
cd /usr/local/mysql/lib
ln -s libmysqlclient.so.18 libmysqlclient.so.16
ldconfig
To try and catch this error, I've added the following code to custombuild for Debian in the doMySQL section
Code:
#mysql 5.5.11 changed to libmysqlclient.so.18 from libmysqlclient.so.16
if [ "${MYSQL_OPT}" = "5.5" ] ; then
if [ -e /usr/local/directadmin/directadmin ]; then
COUNT=`ldd /usr/local/directadmin/directadmin | grep -c libmysqlclient.so.16`
if [ "${COUNT}" -eq 1 ]; then
if [ ! -e /usr/local/mysql/lib/libmysqlclient.so.16 ] && [ -e /usr/local/mysql/lib/libmysqlclient.so.18 ]; then
echo "*** Linking libmysqlclient.so.16 to libmysqlclient.so.18";
ln -s libmysqlclient.so.18 /usr/local/mysql/lib/libmysqlclient.so.16
ldconfig
fi
fi
COUNT=`ldd /usr/local/directadmin/directadmin | grep -c libmysqlclient.so.18`
if [ "${COUNT}" -eq 1 ]; then
if [ ! -e /usr/local/mysql/lib/libmysqlclient.so.18 ] && [ -e /usr/local/mysql/lib/libmysqlclient.so.16 ]; then
echo "*** Linking libmysqlclient.so.18 to libmysqlclient.so.16";
ln -s libmysqlclient.so.16 /usr/local/mysql/lib/libmysqlclient.so.18
ldconfig
fi
fi
fi
fi
I've also added code to the update.sh for that similar even, if DA is updated and the new DA is linked to so.18. This may not even get that far as the dataskq wouldn't even work to call the update.sh.
I've tested the above, and it does work, but the ride may get bumpy on Debian systems.
John