Meituan-Dianping / Meituan-Dianping/SQLAdvisor
Ubuntu 18.04.5 LTS 安装步骤
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 5.6k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Description
完整的安装步骤:
安装依赖
apt-get install -y gcc g++ cmake make libaio1 libaio-dev libffi-dev libglib2.0-0 libglib2.0-dev
安装 libperconaserverclient18.1-dev
apt-get install -y gnupg2 && \
wget https://repo.percona.com/apt/percona-release_latest.$(lsb_release -sc)_all.deb && \
dpkg -i percona-release_latest.$(lsb_release -sc)_all.deb && \
rm -f percona-release_latest.$(lsb_release -sc)_all.deb && \
apt-get update && \
apt-get install -y libperconaserverclient18.1-dev
编译
cmake -DBUILD_CONFIG=mysql_release -DCMAKE_BUILD_TYPE=debug -DCMAKE_INSTALL_PREFIX=/usr/local/sqlparser ./ && \
make && make install && \
cd sqladvisor/ && \
cmake -DCMAKE_BUILD_TYPE=debug ./
添加 glibconfig.h 软连接
ln -sf /usr/lib/x86_64-linux-gnu/glib-2.0/include/glibconfig.h /usr/local/sqlparser/include/glibconfig.h
继续安装
make && \
mv /opt/SQLAdvisor/sqladvisor/sqladvisor /bin && \
rm -rf /opt/SQLAdvisor/
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
No target documentation file or specific requested edit is named. Start by locating the repository's installation or build documentation, then compare it with the listed Ubuntu dependencies, Percona client setup, CMake commands, and symlink step. Done means the relevant documentation contains accurate, reproducible Ubuntu 18.04.5 instructions.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, cmake, shell, ubuntu
- Domain
- build-system, documentation, operating-systems
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100