安装环境:
1、rhel6.3 x64,最小化安装
2、mysql 5.5.40
3、sysbench-0.4.12
安装完成后,执行/usr/local/bin/sysbench命令报错:
./sysbench: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
解决方法:
[root@mysqlshell bin]# find / -name libmysqlclient.so.18
/project/class2/mysql/lib/libmysqlclient.so.18
[root@mysqlshell bin]#ln -s /project/class2/mysql/lib/libmysqlclient.so.18 /usr/lib64/
问题解决。