eos安装

作者: 宋song一 | 来源:发表于2020-02-11 19:49 被阅读0次

    阿里云国内站连接github有问题,clone5次都不成功。腾讯云也是。
    建议在码云上将代码导入后再继续。
    eos官方文档

    EOS安装在CentOS7.6上
    如何在UBUNTU虚拟机上编译EOS完成环境搭建?(含运行)
    全面理解EOS——1.源码编译及运行

    基本命令

    git clone https://gitee.com/Gbeauty/eos --recursive
    cd eos/scripts/
    sudo ./eosio_build.sh
    

    eos2.0版本不需要 这一步:(安装EOS

    cd eos/build
    sudo make install)

    安装完成的显示:

    [100%] Linking CXX executable wasm_spec_test
    cd /root/eos1/eos/build/eosio-wasm-spec-tests/generated-tests && /root/opt/cmake-3.10.2/bin/cmake -E cmake_lin
    make[2]: Leaving directory '/root/eos1/eos/build'
    [100%] Built target wasm_spec_test
    make[1]: Leaving directory '/root/eos1/eos/build'
    /root/opt/cmake-3.10.2/bin/cmake -E cmake_progress_start /root/eos1/eos/build/CMakeFiles 0
     _______  _______  _______ _________ _______
    (  ____ \(  ___  )(  ____   __   __ (  ___  )
    | (    \/| (   ) || (    \/   ) (   | (   ) |
    | (__    | |   | || (_____    | |   | |   | |
    |  __)   | |   | |(_____  )   | |   | |   | |
    | (      | |   | |      ) |   | |   | |   | |
    | (____/\| (___) |/\____) |___) (___| (___) |
    (_______/(_______)\_______)\_______/(_______)
    =============================================
    EOSIO has been successfully built. 2:14:59
    You can now install using: /root/eos1/eos/scripts/eosio_install.sh
    Uninstall with: /root/eos1/eos/scripts/eosio_uninstall.sh
    
    If you wish to perform tests to ensure functional code:
    cd /root/eos1/eos/scripts/../build && make test
    
    EOSIO website: https://eos.io
    EOSIO Telegram channel: https://t.me/EOSProject
    EOSIO resources: https://eos.io/resources/
    EOSIO Stack Exchange: https://eosio.stackexchange.com
    
    

    环境要求:7g以上内存(可以修改配置),
    (gcc版本6以上,不要使用最新版本(最好使用ubuntu,18.04版本为7. 另centos7.7自带4.8.5,升级比较麻烦)。)
    安装gcc后的可用空间大于20g
    Centos7系统设置软件源
    CentOS 7.6 编译安装最新版本GCC 9.2.0 实录,gcc 9.2.0好像不能编译eos
    CMake Error at CMakeLists.txt:5 (PROJECT): The CMAKE_C_COMPILER: cl is not a full path

    4.5 【错误4】编译提示RAM空间不足

    输入:

    duncanwang@duncanwang:~/eos$ ./eosio_build.sh

    错误提示:

        Beginning build version: 1.2
        Wed Jun 27 10:24:48 UTC 2018
        User: duncanwang
    cat: .git/refs/heads/master: No such file or directory
        git head id: 
        Current branch: HEAD
    
        ARCHITECTURE: Linux
    
        OS name: Ubuntu
        OS Version: 18.04
        CPU speed: 3192.622Mhz
        CPU cores: 2
        Physical Memory: 974 Mgb
        Disk install: /dev/sda2
        Disk space total: 19G
        Disk space available: 13G
        Your system must have 7 or more Gigabytes of physical memory installed.
        Exiting now.
    
    

    解决方法:
    进到eos/scripts/路径,修改对应的sh文件,找到“Your system must have 7 or more Gigabytes of physical memory installed”字样,或者You must have at least %sGB of available storage to install EOSIO,将后面的exit 1命令去掉即可。

     if [ "${MEM_MEG}" -lt 7000 ]; then
            printf "\\tYour system must have 7 or more Gigabytes of physical memory installed.\\n"
            printf "\\tExiting now.\\n"
      #     exit 1
        fi
    
    

    顺道把硬盘不足的提示也注释掉,测试发现13G的空闲硬盘是可以编译成功的。

    >   if [ "${DISK_AVAIL%.*}" -lt "${DISK_MIN}" ]; then
            printf "\\tYou must have at least %sGB of available storage to install EOSIO.\\n" "${DISK_MIN}"
            printf "\\tExiting now.\\n"
    #       exit 1
        fi
    

    相关文章

      网友评论

          本文标题:eos安装

          本文链接:https://www.haomeiwen.com/subject/amqffhtx.html