Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile TiDB in China

2025-02-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article introduces the relevant knowledge of "how to compile TiDB in China". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Tools required:

Debian or other versions of linux.

Make,git,golang (preferably above version 1.11)

Compilation process

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 is added later

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 / / if not, change all the later versions to master.

This is the end of the content of "how to compile TiDB in China". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report