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

centos7最后make报错的解决方法 #74

Open
kimiliang123 opened this issue Sep 12, 2018 · 0 comments
Open

centos7最后make报错的解决方法 #74

kimiliang123 opened this issue Sep 12, 2018 · 0 comments

Comments

@kimiliang123
Copy link

Linking CXX executable sqladvisor
/usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libperconaserverclient_r.so: undefined reference to [email protected]' /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libperconaserverclient_r.so: undefined reference to [email protected]'
collect2: error: ld returned 1 exit status
make[2]: *** [sqladvisor] Error 1
make[1]: *** [CMakeFiles/sqladvisor.dir/all] Error 2
make: *** [all] Error 2

报错如上。
尝试了ln -s libperconaserverclient_r.so ...方法都没用
后来尝试查看libcrypto.so.10的问题。
lrwxrwxrwx. 1 root root 19 Aug 22 2017 /usr/lib64/libcrypto.so.10 -> libcrypto.so.1.0.1e
尝试对他进行升级
rpm -qa|grep openssl
openssl-1.0.1e-60.el7.x86_64
openssl-libs-1.0.1e-60.el7.x86_64

yum update openssl
………………
Updated:
openssl.x86_64 1:1.0.2k-12.el7

Dependency Updated:
openssl-libs.x86_64 1:1.0.2k-12.el7

再尝试make成功
make
Linking CXX executable sqladvisor
[100%] Built target sqladvisor

希望能解决各位的问题

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

1 participant