Skip to content

리눅스 Ubuntu 16.04 가상화폐 개발환경 설치

cryptozeny edited this page Jul 6, 2018 · 16 revisions

비트코인/라이트코인 환경설치 간략히

자세한 내용은 이곳을 참고:

https://github.com/cryptozeny/CopyCoinStudy/blob/master/build-unix-%ED%95%9C%EA%B5%AD%EC%96%B4%EB%B2%88%EC%97%AD.md

비트코인 저장소를 추가. 이유는 libdb4.8-dev libdb4.8++-dev 두 개를 설치하기 위함이다.

sudo add-apt-repository ppa:bitcoin/bitcoin && \
sudo apt-get update

나머지 모두 설치

sudo apt-get install \
software-properties-common libdb4.8-dev libdb4.8++-dev \
build-essential libtool autotools-dev automake pkg-config \
libssl-dev libevent-dev bsdmainutils libboost-all-dev \
libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a \
libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev \
protobuf-compiler libqrencode-dev

소스 빌드

-j4 옵션은 쿼드코어 옵션. 코어가 12개면 -j12 로 한다.

$ ./autogen.sh && ./configure && make -j4

만약 메모리가 부족해서 에러가 난다면 다음을 시도해보자

./configure CXXFLAGS="--param ggc-min-expand=1 --param ggc-min-heapsize=32768"

한번에: bitcoin v0.15.1 설치. 1cpu 2048ram ssd VPS에서 약 45분 소요

sudo add-apt-repository ppa:bitcoin/bitcoin -y && \
sudo apt-get update -y && \
sudo apt-get install -y \
software-properties-common libdb4.8-dev libdb4.8++-dev build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev && \
cd && \
git clone https://github.com/bitcoin/bitcoin.git && \
cd bitcoin/ && \
git checkout v0.15.1 && \
./autogen.sh && \
./configure && \
make && \
make check

한번에: bitzeny z2.0.x 설치

$ sudo add-apt-repository ppa:bitcoin/bitcoin -y && sudo apt-get update -y && sudo apt-get install -y software-properties-common libdb4.8-dev libdb4.8++-dev build-essential libtool autotools-dev automake pkg-config libssl-dev libevent-dev bsdmainutils libboost-all-dev libminiupnpc-dev libzmq3-dev libqt5gui5 libqt5core5a libqt5dbus5 qttools5-dev qttools5-dev-tools libprotobuf-dev protobuf-compiler libqrencode-dev && cd && git clone https://github.com/BitzenyCoreDevelopers/bitzeny.git && cd bitzeny/ && git checkout z2.0.x && ./autogen.sh && ./configure && make