cbw1030
기록하는 공간
cbw1030
전체 방문자
오늘
어제
  • 전체보기 (101)
    • Programming (99)
      • Java (19)
      • Servlet (10)
      • Spring Framework (13)
      • Javascript (22)
      • AWS (2)
      • 네트워크 (8)
      • 데이터베이스 (13)
      • 리눅스 (3)
      • 블록체인 (7)
      • 용어 정리 (2)

블로그 메뉴

  • 홈
  • 태그
  • 방명록

공지사항

인기 글

태그

  • 삼성SDS 브라이틱스
  • javascript
  • 생활코딩
  • 삼성SDS
  • 브라이틱스 튜토리얼
  • 데이터분석
  • Brightics
  • 브라이틱스 스튜디오 사용법
  • web
  • 크롤링
  • 인공지능
  • 머신러닝
  • 브라이틱스 스튜디오
  • 데이터 사이언스
  • Brightics Studio
  • beautifulsoup
  • Brightics AI
  • 차원축소
  • react
  • 브라이틱스

최근 댓글

최근 글

티스토리

hELLO · Designed By 정상우.
cbw1030

기록하는 공간

[블록체인] Bitcoin Core 설치
Programming/블록체인

[블록체인] Bitcoin Core 설치

2022. 2. 2. 12:35
반응형

Microsoft store에서 아래 파일 2개 설치

1. Ubuntu 18.04 LTS

2. Windows Terminal

 

Windows Terminal에서 우분투 실행하여 아래 명령어 수행하여 계정 생성

1. sudo adduser [계정명]

2. sudo usermod -aG sudo [계정명]

  -> 새로 만든 계정에 관리자 권한을 부여한다.

3. su - [계정명]

  -> 새로 만든 계정으로 로그인

 

bitcoin core 설치 전 기본적인 셋팅 진행

1. sudo apt-get update

2. sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3

3. sudo apt-get install libevent-dev libboost-system-dev libboostfilesystem-dev libboost-test-dev libboost-thread-dev
   만약 E: Unable to locate package libboostfilesystem-dev 에러가 발생한다면 아래 명령어 실행
   sudo apt-get install libevent-dev libboost-dev libboost-system-dev libboost-filesystem-dev libboost-test-dev

 

bitcoin core 설치 진행

1. sudo add-apt-repository ppa:bitcoin/bitcoin (지갑을 사용하기 위해서는 ppa가 필요함)

2. sudo apt-get update

3. sudo apt-get install libdb4.8-dev libdb4.8++-dev

4. apt-cache search libdb4.8 (libdb4.8이 잘 설치되어있는지 확인하는 절차)

5. sudo apt-get install libminiupnpc-dev (Depency 중 방화벽을 뛰어넘게 도와주는 라이브러리 miniupnpc)

6. sudo apt-get install libzmq3-dev

 

bitcoin 깃허브에서 자료를 개인 컴퓨터로 받는다.

git clone -b v0.20.0 https://github.com/bitcoin/bitcoin.git

 

 

GitHub - bitcoin/bitcoin: Bitcoin Core integration/staging tree

Bitcoin Core integration/staging tree. Contribute to bitcoin/bitcoin development by creating an account on GitHub.

github.com

 

bitcoin network를 만들기 위한 명령어는 다음 4줄이다.

./autogen.sh

./configure

make

make install

 

https://www.youtube.com/watch?v=LU0WSOeZ0sQ&list=PLZwFtgKc35I_ROUsSev0xcy5poVH486CV&index=3

 

만약 ./autogen.sh, ./configure까지는 잘 되었는데 make에서 recipe for target 'bitcoind' failed 에러가 발생한다면 아래 사이트 참조한다.

https://stackoverflow.com/questions/52871871/bitcoin-compile-undefined-reference-to-blockassemblerblockassemblercchainp

 

bitcoin compile (.undefined reference to `BlockAssembler::BlockAssembler(CChainParams const&)')

I'm getting error after make command like, undefined reference to `BlockAssembler::BlockAssembler(CChainParams const&)' and in last Makefile:774: recipe for target 'all-recursive' failed m...

stackoverflow.com

 

해결방법은 이대로 기본 세팅을 다시 하면 된다.

sudo apt-get install build-essential libtool autotools-dev automake pkg-config bsdmainutils python3  

sudo apt-get install libssl-dev libevent-dev libboost-system-dev libboost-filesystem-dev libboost-chrono-dev libboost-test-dev libboost-thread-dev

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:bitcoin/bitcoin
sudo apt-get update
sudo apt-get install libdb4.8-dev libdb4.8++-dev

 

필자는 위 명령어로 다시 진행하여 성공적으로 make, make install 까지 진행하였다.

 

 

이후 which bitcoind, which bitcoin-cli 명령어를 통해 경로를 찾아낼 수 있으면 bitcoin core 설치는 완료된 것이다.

 

 

참고

https://www.youtube.com/watch?v=LU0WSOeZ0sQ&list=PLZwFtgKc35I_ROUsSev0xcy5poVH486CV&index=3 

반응형
저작자표시 (새창열림)

'Programming > 블록체인' 카테고리의 다른 글

[블록체인] Bitcoin 트랜잭션 전송과 확인  (0) 2022.02.02
[블록체인] Bitcoin P2P Network 구성하기  (1) 2022.02.02
[블록체인] Bitcoin 지갑과 주소  (0) 2022.02.02
[블록체인] Bitcoin Core 실행과 Genesis Block  (1) 2022.02.02
[블록체인] RBF(Replace By Fee) Protocol  (0) 2021.07.28
    'Programming/블록체인' 카테고리의 다른 글
    • [블록체인] Bitcoin P2P Network 구성하기
    • [블록체인] Bitcoin 지갑과 주소
    • [블록체인] Bitcoin Core 실행과 Genesis Block
    • [블록체인] RBF(Replace By Fee) Protocol
    cbw1030
    cbw1030

    티스토리툴바