时间:2021-07-01 10:21:17 帮助过:13人阅读
并导入这些环境变量:
# . ~/.bash_profile
### 注意:这一步很重要,必须确保是正确的GO src路径:
# mkdir -p $GOPATH/src/github.com/pingcap/pingcap
2. 编译tidb
# cd $GOPATH/src/github.com/pingcap/pingcap
# git clone https://github.com/pingcap/tidb.git && gmake
3. 编译pd
# cd $GOPATH/src/github.com/pingcap/pingcap
# git clone https://github.com/pingcap/pd.git && gmake
4. 编译tikv
编译tikv需要rust nightly版本,gcc-4.8.5(其他版本可能会在编译过程碰到问题)
# cd $GOPATH/src/github.com/pingcap/pingcap
# git clone https://github.com/pingcap/tikv.git && cargo build
CentOS6 x64下编译TiDB
标签:x86 ror logs ## blog drive src rust export