Problem
Compiling MySQL using Intel's ICC compiler on Linux might require the installation of extra libraries. If these libraries are missing, the MySQL server will not start. In such a situation, an error message like the following will appear in the MySQL error log:/usr/local/mysql/bin/mysqld:
error while loading shared libraries: libcxaguard.so.5:
cannot open shared object file: No such file or directory
Solution
Download the Intel ICC 8.1 shared libraries from http://dev.mysql.com/downloads/os-linux.html. If you happen to use a Linux distribution using RPM, then download the appropriated RPM. Otherwise use the tarball (*.tar.gz). Make sure to get the appropriated version for your CPU type (i386 or ia64). Also, download the 8.1 version.
The RPM installation should be used whenever available. To install the rpm, enter something like the following# rpm -ivh intel-icc8-libs-8.1-0.i386.rpm
The tarball installation is more flexible. You will need to make sure that the libraries are available to the dynamic linker at run time. The following are two solutions:
The first installation method for the tarball is to just put the content of the *.tar.gz file into the directory /usr/local/lib. This generally works without modification. Enter something similar to the following from the command-line logged in as root:
cd /tmp
tar xzvf /path/to/intel-icc8-libs-8.1-i386.tar.gz
cp intel-icc8-libs-8.1-i386/* /usr/local/lib
rm -Rf intel-icc8-libs-8.1-i386/
ldconfig
An alternative method will offer more control and make it easier to upgrade or to remove the libraries later. However, there are a few extra steps that need to be performed:cd /usr/local/lib
tar xzvf /path/to/intel-icc8-libs-8.1-i386.tar.gz
mv intel-icc8-libs-8.1-i386/ icc81
Edit the file /etc/ld.so.conf and at the end, add following line:/usr/local/lib/icc81
Note that on some Linux distributions, you must edit another file in order to add a new directory to the dynamic linker path. Verify what is appropriate for your distribution before making this change.
Then re-configure the dynamic linker by entering the following from the command-line:ldconfig
After the installation you can simply continue with normal installation of MySQL.