CODERJH

ethereum geth 설치 방법 본문

Ethereum Nodediscovery v5

ethereum geth 설치 방법

CODERJH 2022. 5. 20. 12:08

Go 작업공간 없이 Geth 빌드

1. git clone https://github.com/ethereum/go-ethereum.git

 

GitHub - ethereum/go-ethereum: Official Go implementation of the Ethereum protocol

Official Go implementation of the Ethereum protocol - GitHub - ethereum/go-ethereum: Official Go implementation of the Ethereum protocol

github.com

2. cd go-ethereum

3. make geth ( 이때 go version == go1.18.2 or go1.9.7이상)

(현재 사용중 version은 go1.18.2

geth version

4. make geth시 에러 해결 방법

4.1 curl 이용 go 패키지 다운로드

curl -O https://dl.google.com/go/go1.18.2.linux-amd64.tar.gz 

4.2 sudo apt-get install -y build-essential

4.3. tar -xzf go1.9.7.linux-amd64.tar.gz

4.4 sudo mv go /usr/local

4.5 vim ~/.profile 수정

echo 'GOPATH="/usr/local/go"'>>~/.profile

echo 'PATH="$PATH:$GOPATH/bin"'>>~/.profile

4.6 source ~/.profile

4.7 make geth 진행하면 된다.