Building Steem for the Testnet

4년 전


Good morning my fellow Steemers!

I've seen many users start working on some reall nice applications that are built on top of the Steem blockchain and I thought that I would put out a short guide explaining how easy it is to setup a node on the testnet so you can test your application without spamming the main chain.

Building Steem for the testnet

First I'm going to assume that you have a clean install of Ubuntu ready to go. For windows users, you can follow the following article in order to install ubuntu via virtual box:
http://www.wikihow.com/Install-Ubuntu-on-VirtualBox

  • Login to Ubuntu
  • Update the default package list:
sudo apt-get update

  • Install required dependencies
sudo apt-get install git cmake g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev libssl-dev libncurses5-dev doxygen libreadline-dev dh-autoreconf

  • Download and build Boost 1.60.0
wget -O boost_1_60_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.60.0/boost_1_60_0.tar.gz/download
tar xzvf boost_1_60_0.tar.gz
cd boost_1_60_0
./bootstrap.sh --prefix=/usr/local
./b2 install
cd

  • Build and istall secp256k1
git clone https://github.com/bitcoin/secp256k1
cd secp256k1
./autogen.sh
./configure
make
./tests
cd

  • Configure Steem for the testnet
git clone https://github.com/steemit/steem
cd steem
git submodule update --init --recursive
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_CONTENT_PATCHING=OFF -DLOW_MEMORY_NODE=ON -DBUILD_STEEM_TESTNET=true

You should see an output line that reads:

--

             CONFIGURED FOR TEST NETWORK


--

  • Build Steem
make

  • Start your node
cd programs/steemd
./steemd --rpc-endpoint

Congratulations you should now be able to connect to your node via RPC.

If anyone has a testnet node that I can list for people to connect to, please mention them in the comments so I can add it to the article.

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
STEEMKR.COM IS SPONSORED BY
ADVERTISEMENT
Sort Order:  trending

Awesome man, thanks for the detailed instructions!

Followed instructions on 04.07.2018 - got a first error

CMake Error at /usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
Could NOT find snappy (missing: SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR)
Call Stack (most recent call first):
/usr/share/cmake-3.5/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
libraries/vendor/rocksdb/cmake/modules/Findsnappy.cmake:17 (find_package_handle_standard_args)
libraries/vendor/rocksdb/CMakeLists.txt:66 (find_package)

Error signaled by @timcliff May 20, this year :

Manual build instructions giving error on master: Could not find snappy #2476

Solved with

sudo apt-get install libsnappy-dev

Output (steem cloned today):

--

         CONFIGURED FOR TEST NETWORK

--

         CONFIGURED FOR NO SUPPORT OF SMT

--

         CONFIGURED FOR NO SUPPORT OF STD ALLOCATOR

--

         CONFIGURED FOR LOW MEMORY NODE

-- Configuring done
-- Generating done
-- Build files have been written to: /home/eftg/steem