github.com/ari-anchor/sei-tendermint@v0.0.0-20230519144642-dc826b7b56bb/docs/introduction/install.md (about)

     1  ---
     2  order: 3
     3  ---
     4  
     5  # Install Tendermint
     6  
     7  ## From Binary
     8  
     9  To download pre-built binaries, see the [releases page](https://github.com/tendermint/tendermint/releases).
    10  
    11  ## Using Homebrew
    12  
    13  You can also install the Tendermint binary by simply using homebrew,
    14  
    15  ```
    16  brew install tendermint
    17  ```
    18  
    19  ## From Source
    20  
    21  You'll need `go` [installed](https://golang.org/doc/install) and the required
    22  environment variables set, which can be done with the following commands:
    23  
    24  ```sh
    25  echo export GOPATH=\"\$HOME/go\" >> ~/.bash_profile
    26  echo export PATH=\"\$PATH:\$GOPATH/bin\" >> ~/.bash_profile
    27  ```
    28  
    29  Get the source code:
    30  
    31  ```sh
    32  git clone https://github.com/tendermint/tendermint.git
    33  cd tendermint
    34  ```
    35  
    36  Then run:
    37  
    38  ```sh
    39  make install
    40  ```
    41  
    42  to put the binary in `$GOPATH/bin` or use:
    43  
    44  ```sh
    45  make build
    46  ```
    47  
    48  to put the binary in `./build`.
    49  
    50  _DISCLAIMER_ The binary of Tendermint is build/installed without the DWARF
    51  symbol table. If you would like to build/install Tendermint with the DWARF
    52  symbol and debug information, remove `-s -w` from `BUILD_FLAGS` in the make
    53  file.
    54  
    55  The latest Tendermint is now installed. You can verify the installation by
    56  running:
    57  
    58  ```sh
    59  tendermint version
    60  ```
    61  
    62  ## Run
    63  
    64  To start a one-node blockchain with a simple in-process application:
    65  
    66  ```sh
    67  tendermint init validator
    68  tendermint start --proxy-app=kvstore
    69  ```
    70  
    71  ## Reinstall
    72  
    73  If you already have Tendermint installed, and you make updates, simply
    74  
    75  ```sh
    76  make install
    77  ```
    78  
    79  To upgrade, run
    80  
    81  ```sh
    82  git pull origin master
    83  make install
    84  ```
    85  
    86  ## Compile with CLevelDB support
    87  
    88  Install [LevelDB](https://github.com/google/leveldb) (minimum version is 1.7).
    89  
    90  Install LevelDB with snappy (optionally). Below are commands for Ubuntu:
    91  
    92  ```sh
    93  sudo apt-get update
    94  sudo apt install build-essential
    95  
    96  sudo apt-get install libsnappy-dev
    97  
    98  wget https://github.com/google/leveldb/archive/v1.20.tar.gz && \
    99    tar -zxvf v1.20.tar.gz && \
   100    cd leveldb-1.20/ && \
   101    make && \
   102    sudo cp -r out-static/lib* out-shared/lib* /usr/local/lib/ && \
   103    cd include/ && \
   104    sudo cp -r leveldb /usr/local/include/ && \
   105    sudo ldconfig && \
   106    rm -f v1.20.tar.gz
   107  ```
   108  
   109  Set a database backend to `cleveldb`:
   110  
   111  ```toml
   112  # config/config.toml
   113  db_backend = "cleveldb"
   114  ```
   115  
   116  To install Tendermint, run:
   117  
   118  ```sh
   119  CGO_LDFLAGS="-lsnappy" make install TENDERMINT_BUILD_OPTIONS=cleveldb
   120  ```
   121  
   122  or run:
   123  
   124  ```sh
   125  CGO_LDFLAGS="-lsnappy" make build TENDERMINT_BUILD_OPTIONS=cleveldb
   126  ```
   127  
   128  which puts the binary in `./build`.