Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build EOS Test Environment in Ubuntu

2025-03-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

How to build EOS test environment in Ubuntu, I believe many inexperienced people are helpless about this, this article summarizes the causes and solutions of the problem, through this article I hope you can solve this problem.

1. Download source code git clone https://github.com/EOSIO/eos--recursive

The problems encountered and the solutions are as follows:

Problem: Cloning to 'test/emscripten'... remote: Counting objects: 109999, done.remote: Compressing objects: 100% (49/49), done.error: RPC failed; curl 56 GnuTLS recv error (-110): The TLS connection was non-properly terminated.fatal: The remote end hung up unexpected end-of-file (EOF) fatal: index-pack failedfatal: unable to clone 'https://github.com/kripken/emscripten.git' to submodule path 'test/emscripten' Unable to recursively enter submodule path 'externals/binaryen' Solution: The reason why cloning cannot be done is that root privileges are not granted. Execute cd eossudo git submodule update --init --recursive. Correct cloning result: positive cloning to 'test/emscripten'... remote: Counting objects: 109999, done.remote: Compression objects: 100% (49/49), done.remote: Total 109999 (delta 31), reused 35 (delta 19), pack-reused 109929 Received objects: 100% (109999/109999), 159.40 MiB| 1.22 MiB/s, done. Process delta: 100% (76465/76465), complete. Check the connection... Done. Submodule path 'externals/binaryen/test/emscripten': detected'1d979a75722a513b586e6705d662ff4ee0ea832b'positive clone to'test/spec'... remote: Counting objects: 989, done.remote: Total 989 (delta 0), reused 0 (delta 0), pack-reused 989 In receiving objects: 100% (989/989), 605.07 KiB| 354.00 KiB/s, done. Process delta: 100% (663/663), complete. Check the connection... Done. Submodule path 'externals/binaryen/test/spec': detected'668281b3d7dfe9be6cbc3c4500b537c49d6449b9'positive clone to'test/waterfall'... remote: Counting objects: 2738, done.remote: Compressing objects: 100% (3/3), done.remote: Total 2738 (delta 0), reused 1 (delta 0), pack-reused 2735 Received object: 100% (2738/2738), 680.70 KiB| 358.00 KiB/s, done. Treatment delta: 100% (1993/1993), complete. Check the connection... Done. Submodule path 'externals/binaryen/test/waterfall': detected '900646fc880d526160b0df9b78bc9dd4f02dc1ab' cloning to 'externals/magic_get'... remote: Counting objects: 2499, done.remote: Total 2499 (delta 0), reused 0 (delta 0), pack-reused 2499 In receiving objects: 100% (2499/2499), 532.04 KiB| 253.00 KiB/s, done. Process delta: 100% (1775/1775), complete. Check the connection... Done. Submodule path 'externals/magic_get': detected'89fda1da702e6c76a22bfb6233e9e3d0641708ec 'cloning to'libraries/appbase'... remote: Counting objects: 240, done.remote: Compressing objects: 100% (3/3), done.remote: Total 240 (delta 0), reused 1 (delta 0), pack-reused 237 Received object: 100% (240/240), 62.12 KiB| 0 bytes/s, done. Process delta: 100% (112/112), complete. Check the connection... Done. Submodule path 'libraries/appbase': detected'44d7d88e561cc9708bcac9453686c8d0f0ffa41e'positively cloned to'libraries/chainbase'... remote: Counting objects: 325, done.remote: Compressing objects: 100% (7/7), done.remote: Total 325 (delta 2), reused 8 (delta 2), pack-reused 315 Received object: 100% (325/325), 68.23 KiB| 111.00 KiB/s, done. Process delta: 100% (131/131), complete. Check the connection... Done. Submodule path 'libraries/chainbase': detected'94c54460bfa391aef6cadf1e3f8a4eb384c8b58e'positively cloned to'libraries/fc'... remote: Counting objects: 1652, done.remote: Compressing objects: 100% (3/3), done.remote: Total 1652 (delta 0), reused 1 (delta 0), pack-reused 1649 Received object: 100% (1652/1652), 913.58 KiB| 107.00 KiB/s, done. Process delta: 100% (850/850), complete. Check the connection... Done. Submodule path 'libraries/fc': Detected 'df5a17ef0704d7dd96c444bfd9a70506bcfbc057' positively cloned to 'libraries/softfloat'... remote: Counting objects: 2579, done.remote: Total 2579 (delta 0), reused 0 (delta 0), pack-reused 2579 Among receiving objects: 100% (2579/2579), 751.02 KiB| 150.00 KiB/s, done. Process delta: 100% (2361/2361), complete. Check the connection... Done. Submodule path 'libraries/softfloat': detect'9dff375a6e3a9728a024b30afa127c88fcb40ea2'2. compile cd eos (omit this step if it is already in the eos directory)./ eosio_build.sh

The road was smooth without any problems.

Compilation completed, as shown

3. Environmental validation (optional)

Please refer to the installation completed diagram and execute the relevant commands for verification.

export PATH=${HOME}/opt/mongodb/bin:$PATH /home/guiren/opt/mongodb/bin/mongod -f /home/guiren/opt/mongodb/mongod.conf &cd /home/guiren/eos/buildmake test

verification results

4. Install eos to system environment

Current catalog: eos

cd buildsudo make install

Screenshot below,

5. Start Test Node

Current directory: eos/build

cd programs/nodeos/./ nodeos -e -p eosio --plugin eosio::chain_api_plugin --plugin eosio::history_api_plugin

Start successfully as follows

2018-07-24T10:07:21.999 thread-0 chain_plugin.cpp:271 plugin_initialize ] initializing chain plugin2018-07-24T10:07:22.000 thread-0 chain_plugin.cpp:508 plugin_initialize ] Starting up fresh blockchain with default genesis state.CHAINBASE: Failed to pin chainbase shared memory (of size 1024 MB) in RAM. Performance degradation is possible.CHAINBASE: Failed to pin chainbase shared memory (of size 340 MB) in RAM. Performance degradation is possible.2018-07-24T10:07:22.201 thread-0 http_plugin.cpp:344 plugin_initialize ] configured http to listen on 127.0.0.1:88882018-07-24T10:07:22.201 thread-0 net_plugin.cpp:2941 plugin_initialize ] Initialize net plugin2018-07-24T10:07:22.201 thread-0 net_plugin.cpp:2966 plugin_initialize ] host: 0.0.0.0 port: 9876 2018-07-24T10:07:22.202 thread-0 net_plugin.cpp:3036 plugin_initialize ] my node_id is e76f8b8955b7944588c11d4c97fbd649c5e18bb1f5adddc306797ba4a2f3cdc82018-07-24T10:07:22.202 thread-0 main.cpp:105 main ] nodeos version 756351682018-07-24T10:07:22.202 thread-0 main.cpp:106 main ] eosio root is /home/guiren/.local/share2018-07-24T10:07:22.202 thread-0 controller.cpp:1252 startup ] No head block in fork db, perhaps we need to replay2018-07-24T10:07:22.202 thread-0 controller.cpp:319 initialize_fork_db ]

A copy similar to the above appears, indicating that it is already in production.

6. Execute cleos command to view related information

Reopen a terminal (do not close the terminal of the previous production node)

Current directory: eos

cd build/programs/cleos./ cleos get info

Network information is as follows,

cleos command official documentation: developers.eos.io/eosio-cleos/reference#cleos-version

Generated blocks and configuration information default to the current login user directory,

cd .local/share/eosio/nodeos/

Delete this directory, restart nodeos to reset accounts, smart contracts, etc.

I suggest that developers will have built a good eos compression save, the next time you can use directly, after all, building the environment is also a time-consuming process.

Package to root command,

tar -zcvf <$/eos_nodes_backup. tar. gz eos After reading the above content, do you know how to build EOS test environment in Ubuntu? If you still want to learn more skills or want to know more related content, welcome to pay attention to the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report