第一篇 - 手把手教你理清EOS各種開發環境搭建來龍去脈__EOS

來源:互聯網
上載者:User

目前來講,任何學習EOS相關技術的資料都來自https://github.com/EOSIO/eos,可能大家在搭建EOS開發環境的過程中,會很迷茫,網上資料都很亂,自己也理不清頭緒,不知如何下手。在這裡,春哥將一步步為你揭開層層面紗。 1. 硬體軟體環境

因為EOS的版本太多,所以你需要Crowdsourced Security Testing道如何查看EOS對應版本的相關資料。

開啟EOS Github官網https://github.com/EOSIO/eos,如下圖所示,點擊master,然後點擊tag,你將會看到不同的版本及其對應的文檔。

我在我電腦安裝過各種各樣的版本,踩過各種各樣的莫名其妙的坑,這篇文章我將以如下配置為大家分享。 作業系統

EOS 版本

2. 編譯設定開發環境 2.1 擷取EOS源碼及其所有子模組

$ git clone https://github.com/eosio/eos --recursive

如果複製代碼時未帶--recursive參數,那麼可切換到項目路徑下面執行如下命令,更新子模組。

$ git submodule update --init --recursive
2.2 編譯源碼產生可執行檔

切換到上面的項目根目錄下面,執行如下命令。

liyuechun:eos yuechunli$ ./eosio_build.sh darwin full
liyuechun:eos yuechunli$ lsCMakeLists.txtdebianring.dotCMakeModulesdocsring.pngDockereos-logo.pngscriptsDoxyfileeos.doxygen.instar.dotHEADEReosio_build.shstar.pngJenkinsfileexternalstestnet-diagrams.shLICENSE.txtlibrariestestnet.mdREADME.mdmesh.dottestnet.templatebuildmesh.pngtestscircle.ymlpluginstoolscontractsprogramsliyuechun:eos yuechunli$ ./eosio_build.sh darwin fullBeginning build version: 1.22018年 4月12日 星期四 07時44分06秒 UTCgit head id: 96ee0325cc925ff3e90f865ebc72b01341196e08Current branch: * masterARCHITECTURE: DarwinOS name: DarwinOS Version: 10.13.3CPU speed: 250.00GhzCPU cores: 4Physical Memory: 16 GbytesDisk space total: 465GDisk space available: 133G.....漫長等待,半小時左右,網路不好的話,40 - 50分鐘。[100%] Linking CXX executable chain_testld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in ___gmpn_divexact_1 from /usr/local/lib/libgmp.a(dive_1.o). To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie[100%] Built target chain_test _______  _______  _______ _________ _______(  ____ \(  ___  )(  ____ \\__   __/(  ___  )| (    \/| (   ) || (    \/   ) (   | (   ) || (__    | |   | || (_____    | |   | |   | ||  __)   | |   | |(_____  )   | |   | |   | || (      | |   | |      ) |   | |   | |   | || (____/\| (___) |/\____) |___) (___| (___) |(_______/(_______)\_______)\_______/(_______)EOS.IO has been successfully built. 0:11:48To verify your installation run the following commands:/usr/local/bin/mongod -f /usr/local/etc/mongod.conf &cd /Users/liyuechun/eos/build; make testFor more information:EOS.IO website: https://eos.ioEOS.IO Telegram channel @ https://t.me/EOSProjectEOS.IO resources: https://eos.io/resources/EOS.IO wiki: https://github.com/EOSIO/eos/wiki

EOS附帶的可執行程式:

liyuechun:programs yuechunli$ pwd/Users/liyuechun/Desktop/0402/eos/build/programsliyuechun:programs yuechunli

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.