本篇內容介紹了“TiDB怎么在國內編譯”的有關知識,在實際案例的操作過程中,不少人都會遇到這樣的困境,接下來就讓小編帶領大家學習一下如何處理這些情況吧!希望大家仔細閱讀,能夠學有所成!
成都創(chuàng)新互聯(lián)公司專業(yè)成都做網(wǎng)站、網(wǎng)站建設,集網(wǎng)站策劃、網(wǎng)站設計、網(wǎng)站制作于一體,網(wǎng)站seo、網(wǎng)站優(yōu)化、網(wǎng)站營銷、軟文推廣等專業(yè)人才根據(jù)搜索規(guī)律編程設計,讓網(wǎng)站在運行后,在搜索中有好的表現(xiàn),專業(yè)設計制作為您帶來效益的網(wǎng)站!讓網(wǎng)站建設為您創(chuàng)造效益。debian 或者其他linux其他版本。
make,git,golang(最好1.11版本以上)
export GOPATH=/data/tidb
mkdir -p /data/tidb/src/github.com/pingcap
cd $GOPATH/src/github.com/pingcap
git clone https://github.com/pingcap/tidb
go.mod 在后面添加
replace ( cloud.google.com/go => github.com/google/go-cloud v0.4.1-0.20181112030950-0b43d4400e53 go.uber.org/atomic => github.com/uber-go/atomic v1.3.3-0.20181018215023-8dc6146f7569 go.uber.org/multierr => github.com/uber-go/multierr v1.1.1-0.20180122172545-ddea229ff1df go.uber.org/zap => github.com/uber-go/zap v1.9.2-0.20180814183419-67bc79d13d15 golang.org/x/crypto => github.com/golang/crypto v0.0.0-20181106171534-e4dc69e5b2fd golang.org/x/lint => github.com/golang/lint v0.0.0-20181026193005-c67002cb31c3 golang.org/x/net => github.com/golang/net v0.0.0-20181108082009-03003ca0c849 golang.org/x/oauth3 => github.com/golang/oauth3 v0.0.0-20181106182150-f42d05182288 golang.org/x/sync => github.com/golang/sync v0.0.0-20181108010431-42b317875d0f golang.org/x/sys => github.com/golang/sys v0.0.0-20181107165924-66b7b1311ac8 golang.org/x/text => github.com/golang/text v0.3.1-0.20181030141323-6f44c5a2ea40 golang.org/x/time => github.com/golang/time v0.0.0-20181108054448-85acf8d2951c golang.org/x/tools => github.com/golang/tools v0.0.0-20181111003725-6d71ab8aade0 google.golang.org/api => github.com/google/google-api-go-client v0.0.0-20181108001712-cfbc873f6b93 google.golang.org/appengine => github.com/golang/appengine v1.3.1-0.20181031002003-4a4468ece617 google.golang.org/genproto => github.com/google/go-genproto v0.0.0-20181109154231-b5d43981345b google.golang.org/grpc => github.com/grpc/grpc-go v1.2.1-0.20181109233107-eb55fa50e6c9 honnef.co/go/tools => github.com/dominikh/go-tools v0.0.0-20180920025451-e3ad64cb4ed3 )
6. make // 不行就把后面的版本全部改成master
“TiDB怎么在國內編譯”的內容就介紹到這里了,感謝大家的閱讀。如果想了解更多行業(yè)相關的知識可以關注創(chuàng)新互聯(lián)-成都網(wǎng)站建設公司網(wǎng)站,小編將為大家輸出更多高質量的實用文章!