Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

关于Linux安装最后一步失败

Open
#68 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cmake, cpp, linux, mysql

Research direction

Start by reproducing the reported Linux build failure and inspect the CMake link step for sqladvisor, especially the missing -lperconaserverclient_r library. Verify how the Percona client library and its symlink are discovered after an existing MySQL installation. Done means the documented installation or build process completes without the linker error.

Written by the indexing model from the issue text.

Description

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文件)

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Meituan-Dianping/SQLAdvisor

All issues in Meituan-Dianping/SQLAdvisor

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.