centos7最后make报错的解决方法
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 35/100
- Issue type
- Documentation
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- centos, cmake, cpp
- Domain
- build-system, operating-systems
Research direction
Start with the reported CentOS 7 build output and the libcrypto.so.10 and OpenSSL package details. Check whether the documented dependency or build guidance should cover this linker failure. Done means the guidance is clear enough to address the error and the sqladvisor target reaches 100% successfully with make.
Written by the indexing model from the issue text.
Description
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
希望能解决各位的问题
- Dominant language
- C
- Stars
- 5.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Meituan-Dianping/SQLAdvisor
-
修复了一些安装问题和代码bugOpen
Difficulty 5/5 Over a week Newbie friendliness 25/100
Meituan-Dianping/SQLAdvisor#100 ·
-
有纯洁的docker 镜像么?Open
Difficulty 4/5 3-5 days Newbie friendliness 20/100
-
连接访问不到Open
Difficulty 2/5 1-3 hours Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
Meituan-Dianping/SQLAdvisor#97 · 1 reaction ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
All issues in Meituan-Dianping/SQLAdvisor
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
research-radar
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
"systemctl is-system-running --wait" may hang indefinitely for non-root usersPossibly taken @alexonea claimed this today. Openbug 🐛 systemctl
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
testing: DISK test reads the wrong directory entry offset on H89Possibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
FujiNetWIFI/fujinet-lib#115 · 1 comment ·
Maintainers usually reply within 1 day