okx / exchain

⛓️ EVM & Wasm $ IBC-compatible, OKTC is a L1 blockchain network built on top of Cosmos SDK that aims for optimal interoperability and performance ✨
https://www.okx.com/oktc
Other
564 stars 182 forks source link

make: *** [Makefile:158: exchain] Error 1 #3264

Open solfeng opened 9 months ago

solfeng commented 9 months ago

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

solfeng commented 9 months ago

Problem Solved make rocksdb fails and needs to be remade Note g++

giskook commented 9 months ago

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

solfeng commented 9 months ago

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

solfeng commented 9 months ago

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

https://forum.okt.club/d/198-okcexchaindexchaincli

giskook commented 9 months ago

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

got it, I tried on 22.04 again, it seems make install works well too.