make: *** [Makefile:158: exchain] Error 1
solfeng opened this issue · 5 comments
environment
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
goland
1.20.11 (1.21.4)
exchain
v1.8.0
question
Install the binaries
cd exchain after
make install
questions
make: *** [Makefile:158: exchain] Error 1
Ask for help
Problem Solved make rocksdb fails and needs to be remade
Note g++
Hi @solfeng ,
Before you install exchain, I think you should install rocksdb first. we provide a command make rocksdb
, I install rocksdb on ubuntu 22.04 successfully with this command. for more information, please refer to https://forum.okt.club/d/299-how-to-start-a-mainnet-node
Hi @solfeng , Before you install exchain, I think you should install rocksdb first. we provide a command
make rocksdb
, I install rocksdb on ubuntu 22.04 successfully with this command. for more information, please refer to https://forum.okt.club/d/299-how-to-start-a-mainnet-node
This is indeed the case, but when make install checks rocksdb, this version is not detected and is displayed as "ignore"
The following is the original text
check go and rocksdb version:
go check success: 1.20.11
rocksdb version check:ignore
And exchaincli: command not found
background:
make mainnet or make testnet will install exchaind/exchaincli under GOBIN
If GOBIN is not declared in the system environment variable, the exchaind/exchaincli binary executable file cannot be found after compilation.
solution:
export GOPATH=your gopath
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
Hi @solfeng , Before you install exchain, I think you should install rocksdb first. we provide a command
make rocksdb
, I install rocksdb on ubuntu 22.04 successfully with this command. for more information, please refer to https://forum.okt.club/d/299-how-to-start-a-mainnet-nodeThis is indeed the case, but when make install checks rocksdb, this version is not detected and is displayed as "ignore"
The following is the original text check go and rocksdb version: go check success: 1.20.11 rocksdb version check:ignore
And exchaincli: command not found
got it, I tried on 22.04 again, it seems make install
works well too.