libraries: libstdc++.so.5: cannot open shared object file: No such ……

我的系统是CentOS 5.5 64位的,在初始化mysql时,报错。
./scripts/mysql_install_db --user=mysql --datadir=/data/mysql/mysql0
WARNING: The host '5d6d-db-dd-lfctc' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Installing MySQL system tables...
./bin/mysqld: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Installation of system tables failed!

解决办法:
yum install -y compat-libstdc++-33.x86_64

添加新评论 »