Meituan-Dianping / SQLAdvisor

输入SQL,输出索引优化建议
GNU General Public License v2.0
5.58k stars 1.24k forks source link

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

Open kimiliang123 opened 6 years ago

kimiliang123 commented 6 years ago

Linking CXX executable sqladvisor /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libperconaserverclient_r.so: undefined reference to X509_check_ip@libcrypto.so.10' /usr/lib/gcc/x86_64-redhat-linux/4.8.5/../../../../lib64/libperconaserverclient_r.so: undefined reference toX509_check_host@libcrypto.so.10' 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

希望能解决各位的问题