icc编译器 mysql_MySQL - installation - How to install the MySQL binaries compiled with Intel's ICC...

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值