Skip to content

Latest commit

 

History

History
75 lines (49 loc) · 1.27 KB

develop.md

File metadata and controls

75 lines (49 loc) · 1.27 KB
title draft
Build for Development
true

Build for Development

If you want to develop the TiDB project, you can follow this guide.

Before you begin

You need to check the supported platforms and prerequisites first.

Build TiKV

  • Get TiKV source code from GitHub

    git clone https://github.com/tikv/tikv.git
    cd tikv
  • Run all unit tests:

    make dev
  • Build in release mode:

    make release

Build TiDB

  • Make sure the GOPATH environment is set correctly.

  • Get the TiDB source code.

    git clone https://github.com/pingcap/tidb.git $GOPATH/src/github.com/pingcap/tidb
  • Enter $GOPATH/src/github.com/pingcap/tidb to build and install the binary in the bin directory.

    make
  • Run the unit test.

    make dev

Build PD

  • Get the PD source code.

    git clone https://github.com/pingcap/pd.git $GOPATH/src/github.com/pingcap/pd
  • Enter $GOPATH/src/github.com/pingcap/pd to build and install the binary in the bin directory.

    make
  • Run the unit test.

    make dev