Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于Linux安装最后一步失败 #68

Open
ifirework opened this issue May 25, 2018 · 2 comments
Open

关于Linux安装最后一步失败 #68

ifirework opened this issue May 25, 2018 · 2 comments

Comments

@ifirework
Copy link

Linking CXX executable sqladvisor
/usr/bin/ld: cannot find -lperconaserverclient_r
collect2: error: ld returned 1 exit status
make[2]: *** [sqladvisor] Error 1
make[1]: *** [CMakeFiles/sqladvisor.dir/all] Error 2
make: *** [all] Error 2

我出现上面问题是因为我的linux上已经安装了mysql
我的操作是:
1 . rpm -qa |grep mysql 查看mysql

  1. rpm -e xxx 卸载

3, 再次安装Percona-Server-shared-56 成功

  1. 重新建立连接

  2. 成功

其实主要是 ln -s libperconaserverclient_r.so.18 libperconaserverclient_r.so 没有成功建立连接(虽然有libperconaserverclient_r.so文件)

@ghost
Copy link

ghost commented Jun 7, 2018

使用 yum install http://www.percona.com/downloads/percona-release/redhat/0.1-3/percona-release-0.1-3.noarch.rpm 后 再用yum update 更新
在安装 yum install Percona-Server-shared-56 就可以建立
ln -s libperconaserverclient_r.so.18 libperconaserverclient_r.so
亲测。

今天用docker 弄了个镜像 确定有用。。docker 镜像地址 镜像地址

@bbotte
Copy link

bbotte commented Nov 30, 2018

https://github.com/bbotte/SQLAdvisor/tree/master/use-directly
不用编译安装,我编译好的,可以直接用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants