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
2011-06-29 10:45 举报
已邀请:
0

ocean

赞同来自:

{:5_131:}
0

qiangbohp

赞同来自:

Done!问题已经解决。我的系统是CentOS6.6,64位。但是我在网上一开始搜索的时候,有两种解决方案。一种是将系统内存在的库文件做一个符号链接,系统内存在的是libstdc++.so.6,命令是:ln -s /usr/lib64/libstdc++so.6 /usr/lib/libstdc++.so.5;另一种是将库文件所在目录(/usr/lib64)加入到共享库配置文件/etc/ld.so.conf中,再执行ldconfig命令。这两种方法都无法解决。阿铭老师,这是什么问题呢?谢谢。
0

tangenxin

赞同来自:

我的centos 6.6   ,安装yum install -y compat-libstdc++-33.x86_64 完美解决msyql。谢谢老师分析
0

zjjjjy

赞同来自:

谢谢老师。我碰到来一样的问题来
0

晨曦

赞同来自:

可以

0

baixl

赞同来自:

64位系统+老版本MySQL,好坑!

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: