zoukankan      html  css  js  c++  java
  • The IBM Blockchain Platform: Develop pre-requisites

    Installing pre-requisites

    The IBM Blockchain Platform: Develop pre-requisites can be installed on Ubuntu or MacOS. Choose your operating system to jump to the appropriate section, or scroll down to find the instructions:

     

    Ubuntu

    To run IBM Blockchain Platform: Develop and Hyperledger Fabric, we recommend you have at least 4Gb of memory.

    The following are prerequisites for installing the required development tools:

    • Operating Systems: Ubuntu Linux 14.04 / 16.04 LTS (both 64-bit), or Mac OS 10.12
    • Docker Engine: Version 17.03 or higher
    • Docker-Compose: Version 1.8 or higher
    • Node: 8.9 or higher (note version 9 is not supported)
    • npm: v5.x
    • git: 2.9.x or higher
    • Python: 2.7.x
    • A code editor of your choice, we recommend VSCode.

    **If installing IBM Blockchain Platform: Develop using Linux, be aware of the following advice:

    • Login as a normal user, rather than root.
    • Do not su to root.
    • When installing prerequisites, use curl, then unzip using sudo.
    • Run prereqs-ubuntu.sh as a normal user. It may prompt for root password as some of it's actions are required to be run as root.
    • Do not use npm with sudo or su to root to use it.
    • Avoid installing node globally as root.**

    If you're running on Ubuntu, you can download the prerequisites using the following commands:

    Copy
    curl -O https://hyperledger.github.io/composer/prereqs-ubuntu.sh
    
    chmod u+x prereqs-ubuntu.sh
    

    Next run the script - as this briefly uses sudo during its execution, you will be prompted for your password.

    Copy
    ./prereqs-ubuntu.sh
    

    What next?

    Congratulations, the installation of the pre-requisites for IBM Blockchain Platform: Develop is complete! You can now proceed with Installing the development environment.

    Mac OS

    Follow these instructions to install the pre-requsities for installing IBM Blockchain Platform: Develop on a local Mac OS X machine. You need to install these tools before you attempt to install IBM Blockchain Platform: Develop.

    Note Mac OS X version 10.12.6 was used for these instructions.

    Install nvm and Apple Xcode

    First install nvm (the Node version manager). nvm is a tool that allows you to easily install, update and switch between versions of Node.js.

    Open the terminal (command line) by clicking on the magnifier in the menu bar at the top right of your screen. Type terminal and press enter.

    In the terminal window paste the text below and press enter:

    Copy
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
    

    More information on this script and the Node install process is available here.

    When you hit enter you should see the pop-up below, prompting you to install git. Press the Get Xcode button to install the full Apple Xcode IDE, including a C++ compiler, used to install native Node.js modules.

    Image of prompt to install xCode

    The download and install process for Xcode may take 20 minutes or more. Be patient!

    After the installation of Xcode has completed launch Xcode. Accept the license agreement. It will prompt you for your username and password and will install additional components.

    After Xcode finishes installing additional components and launches, simply quit Xcode.

    Switch back to the terminal and create your bash profile (stores user preferences for bash):

    Copy
    touch .bash_profile
    

    Then rerun the original curl command:

    Copy
    curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.0/install.sh | bash
    

    Close the terminal and reopen it.

    Check that nvm is installed and is accessible:

    Copy
    nvm —-version
    

    Install Node

    Install the latest (long term support) version of Node:

    Copy
    nvm install --lts
    

    Switch to the LTS version of Node:

    Copy
    nvm use --lts
    

    Check that Node is installed:

    Copy
    node --version
    

    Install Docker

    Follow the instructions here to install Docker for Max (stable): https://docs.docker.com/docker-for-mac/install/

    After running the installed Docker application you should have the whale icon in your menu bar, with a green “Docker is running” status.

    Install VSCode

    Install VSCode by visiting: https://code.visualstudio.com

    Press the “Download for Mac” button and copy the downloaded application into your Applications folder.

    Install the Hyperledger Composer Extension for VSCode

    Launch VSCode and then press the “Extensions” button on the vertical left toolbar.

    Type composer into the search bar and then press the Install button next to the Hyperleger Composerextension. Once the install completes you need to press the Reload button to activate the extension.

    What next?

    Congratulations, the installation of the pre-requisites for IBM Blockchain Platform: Develop is complete! You can now proceed with Installing the development environment.

  • 相关阅读:
    Dubbo入门微服务框架学习
    CSS学习笔记:溢出文本省略(text-overflow)
    ThreadLocal
    redis事务及乐观锁
    redis的三个特殊数据结构(geospatial、bitmaps、hyperloglogs)
    js日期时间格式化
    SimpleDateFormat 中的yyyy-MM-dd HH:mm:ss.SSS说明
    js中window.location.search的用法和作用。
    MySQL查询表中某个字段的重复数据
    完全卸载Oracle方法(超详细)
  • 原文地址:https://www.cnblogs.com/helsing/p/blockchain-preinstall.html
Copyright © 2011-2022 走看看