cockroach(v20.2)源码编译
1.下载代码以及依赖环境 1) 由于github.com国内访问较慢,克隆gitee的镜像 cd /media/lynn/disk_d/codes/database/cockroach mkdir -p src/github.com/cockroachdb/ mv CockroachDB cockroach git clone https://gitee.com/mirrors/CockroachDB.git 2)下载golang-1.15 下载地址 mv go1.15.linux-amd64.tar.gz /usr/lib tar -zxvf go1.15.linux-amd64.tar.gz 2. 下载子模块 1) 修改子模块地址: .gitmodules [submodule "vendor"] path = vendor url = https://gitee.com/jianyun/vendored.git [submodule "c-deps/jemalloc"] path = c-deps/jemalloc url = https://gitee.com/jianyun/jemalloc.git [submodule "c-deps/protobuf"] path = c-deps/protobuf url = https://gitee.com/jianyun