Prerequisites

cURL로 설치

만약 cURL을 설치하지 않았다면 `cURL <https://curl.haxx.se/download.html>`__을 다운로드하십시오.

주석

만약 윈도우를 사용하고 있다면, 아래의 `Windows extras`_를 참조하기 바랍니다.

Docker and Docker Compose

Hyperledger Fabric을 운영, 또는 개발하는 플랫폼에서는 아래와 같은 구성요소가 설치되어 있어야합니다:

  • MacOSX, *nix, or Windows 10에서는 Docker v1.12 이상의 버전이 필요합니다.

  • Older versions of Windows: Docker Toolbox - again, Docker version v1.12 or greater is required.

터미널을 열고 아래의 명령어를 입력하면 현재 설치된 Docker의 버전을 확인 할 수 있습니다:

docker --version

주석

맥, 윈도우에서 Docker를 설치하는 경우, 또는 Docker Toolbox를 설치하는 경우에는 자동적으로 Docker Compose가 설치됩니다. 만약 Docker가 이미 설치되어 있다면, Docker Compose 버전 1.8 이상이 설치되어 있는지 확인하십시오. 만약 설치되어 있지 않다면, 최신 버전의 Docker를 설치하는 것을 권장합니다.

만약 Docker Compose를 설치한 상태라면, 아래의 터미널 명령어를 통해 설치된 버전을 확인할 수 있습니다:

docker-compose --version

Go 프로그래밍 언어

Hyperledger Fabric의 여러 컴포넌트들은 Go 언어 1.7.x를 사용합니다.

체인코드 프로그램을 작성하기전, 소스 코드가 $GOPATH 디렉토리 안에 존재하는지 확인해야 합니다. 우선, $GOPATH 환경 변수가 설정되어 있는지 확인하십시오.

만약 echo $GOPATH 명령어가 아무것도 표시하지 않는다면 환경변수를 설정해야 합니다. 일반적으로 $GOPATH 환경 변수 값은 개발 디렉토리 또는, $HOME 디렉토리의 하위 디렉토리 입니다. Hyperledger Fabric을 개발하면서 Go언어를 자주 사용할 것이므로, ``~/.bashrc``에 ``$GOPATH``를 추가하십시오:

export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin

Node.js Runtime and NPM

Hyperledger Fabric Node.js SDK를 이용한 개발을 하기 위해서는 6.9.x 버전의 Node.js가 설치되어 있어야 합니다.

주석

Node.js 7.x 버전은 현재 지원되지 않습니다.

주석

Node.js를 설치하면 기본적으로 NPM이 함께 설치되지만, 기본 설치된 NPM에서 업데이트 하는 것을 권장합니다. 아래의 명령어를 통해 NPM을 업데이트 할 수 있습니다:

npm install npm@latest -g

Windows extras

윈도우 환경에서 개발을 진행하고 있다면, 아래의 도구들도 함께 설치하는 것을 권장합니다:

주석

On older versions of Windows, such as Windows 7, you typically get this as part of installing Docker Toolbox. However experience has shown this to be a poor development environment with limited functionality. It is suitable to run Docker based scenarios, such as Getting Started, but you may not be able to find a suitable make command.

주석

The curl command that comes with Git and Docker Toolbox is old and does not handle properly the redirect used in Getting Started. Make sure you install and use a newer version from the cURL downloads page