EOS 101 ลอง EOSIO Dawn 3.0 กัน

geeroz(39)
Published in
#eosio
Words
99
Reading
1 min
9y
Listen to this post
~1 min

วันนี้มาลอง EOSIO Dawn 3.0 กัน

  1. ก่อนอื่นไป clone eos มาไว้ในเครื่องเราก่อน
    git clone https://github.com/eosio/eos — recursive

  2. จากนั้นเข้าไปใน eos directory
    cd eos

  3. ต่อไปก็ทำการ build eos ด้วยคำสั่งด้านล่าง
    ./eosio_build.sh

Screen Shot 2018-04-12 at 08.01.47.png
output หลังจากทำการ run build script ./eosio_build.sh

Screen Shot 2018-04-12 at 08.04.58.png
build ไม่ผ่าน เพราะติดปัญหา “Failed to find Gettext libintl (missing: Intl_INCLUDE_DIR)”

ผมใช้ macOS High Sierra มีติดปัญหา EOS Failed to find Gettext libintl (missing: Intl_INCLUDE_DIR) ลองค้นหาทางแก้ดู ไปเจอ issue นี้ใน github https://github.com/EOSIO/eos/issues/2174 เค้าบอกให้ทำแบบนี้

brew link gettext — force

จากนั้นลอง run build script ใหม่อีกครั้ง ก็ผ่านไปได้ด้วยดี

Screen Shot 2018-04-12 at 08.08.52.png
build ผ่าน ก็จะได้หน้าตาแบบนี้

ถ้า build ผ่านเรียบร้อยไม่ติดอะไร เรามาลอง run eosio ในแบบ single-node blockchain กันดู

cd build/programs/nodeos
./nodeos -e -p eosio — plugin eosio::wallet_api_plugin — plugin eosio::chain_api_plugin — plugin eosio::account_history_api_plugin

Screen Shot 2018-04-12 at 08.12.33.png
We are producing block yes!

ขั้นตอนก็มีเท่านี้สำหรับการลง eosio และการ run eosio ในแบบ Single Node Testnet
ใน post หน้าเราจะมาลองสร้าง wallet, สร้าง account และ upload “currency” contract เข้าไปใน eos blockchain ที่อยู่บนเครื่องของเราครับ

EOS 101 ลอง EOSIO Dawn 3.0 กัน | Ecency