|
|
@ -95,9 +95,9 @@ wget https://github.com/google/leveldb/archive/v1.20.tar.gz && \ |
|
|
|
tar -zxvf v1.20.tar.gz && \ |
|
|
|
cd leveldb-1.20/ && \ |
|
|
|
make && \ |
|
|
|
cp -r out-static/lib* out-shared/lib* /usr/local/lib/ && \ |
|
|
|
sudo cp -r out-static/lib* out-shared/lib* /usr/local/lib/ && \ |
|
|
|
cd include/ && \ |
|
|
|
cp -r leveldb /usr/local/include/ && \ |
|
|
|
sudo cp -r leveldb /usr/local/include/ && \ |
|
|
|
sudo ldconfig && \ |
|
|
|
rm -f v1.20.tar.gz |
|
|
|
``` |
|
|
@ -109,8 +109,8 @@ Set database backend to cleveldb: |
|
|
|
db_backend = "cleveldb" |
|
|
|
``` |
|
|
|
|
|
|
|
To build Tendermint, run |
|
|
|
To install Tendermint, run |
|
|
|
|
|
|
|
``` |
|
|
|
CGO_LDFLAGS="-lsnappy" go build -ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse --short=8 HEAD`" -tags "tendermint gcc" -o build/tendermint ./cmd/tendermint/ |
|
|
|
CGO_LDFLAGS="-lsnappy" go install -ldflags "-X github.com/tendermint/tendermint/version.GitCommit=`git rev-parse --short=8 HEAD`" -tags "tendermint gcc" -o build/tendermint ./cmd/tendermint/ |
|
|
|
``` |