How to compile STEEM under Ubuntu 18.04 LTS

in steem •  6 months ago

Ancient software dependencies versus modern Linux

Not everyone knows that STEEM blockchain software has some dependencies that make it hard to compile using latest versions of compilers and libraries. I wanted to test native steemd on Ubuntu 18.04 LTS while experimenting on one of our @noisy.witness nodes. I had to figure out which software I need to downgrade to successfully build the target. In this post I'll describe building instructions for latest stable STEEM (commit 33b2c375 at the time of writing this article).

Bionic Beaver loves STEEM too!


You'll need to install gcc-5 and g++-5, manually download and compile libboost 1.60 and get libssl1.0-dev before running cmake for STEEM, and basically you're done.

Building requirements and application

To begin, install everything we can from package manager:

apt install -y \
    autoconf \
    automake \
    cmake \
    gcc-5 \
    g++-5 \
    libbz2-dev \
    libsnappy-dev \
    libssl1.0-dev \
    libtool \
    make \
    pkg-config \
    python3 \

We need to delete newer versions of gcc andg++, then create links to steemutilizable compilers - gcc-5 and g++-5.

apt remove -y gcc g++
ln -s /usr/bin/gcc-5 /usr/bin/gcc
ln -s /usr/bin/gcc-5 /usr/bin/cc
ln -s /usr/bin/g++-5 /usr/bin/g++
ln -s /usr/bin/g++-5 /usr/bin/cxx

Next, we're installing libboost in version 1.60 from sources.

cd ~/
wget ''
tar -xvf boost_1_60_0.tar.bz2
cd boost_1_60_0
./b2 install
cd ~/
rm -rf boost_1_60_0

Finally, downloading STEEM from GitHub and running our last build.

git clone
cd steem
git checkout stable
git submodule update --init --recursive
mkdir build && cd build

Hopefully, after a while we'll see:

Scanning dependencies of target steemd
[ 98%] Building CXX object programs/steemd/CMakeFiles/steemd.dir/main.cpp.o
[100%] Linking CXX executable steemd
[100%] Built target steemd


If you want to back my further exposition to puzzlement of STEEM, you enjoyed this post OR you do believe that witnesses should eat something from time to time - please consider upvoting this post and voting for our @noisy.witness. Your vote will help us pay for servers, will allow us spend more time on fixing bugs and programming new features in our projects.


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!
Sort Order:  

Congratulations @perduta!
Your post was mentioned in the Steemit Hit Parade for newcomers in the following category:

  • Pending payout - Ranked 7 with $ 28,09

I also upvoted your post to increase its reward
If you like my work to promote newcomers and give them more visibility on Steemit, consider to vote for my witness!

Congratulations @perduta! You have completed the following achievement on Steemit and have been rewarded with new badge(s) :

Award for the total payout received

Click on the badge to view your Board of Honor.
If you no longer want to receive notifications, reply to this comment with the word STOP

Do you like SteemitBoard's project? Then Vote for its witness and get one more award!

Congratulations @perduta! You have received a personal award!

SteemFest 3 Attendee
Click on the badge to view your Board of Honor.

Do not miss the last post from @steemitboard:

SteemFest³ - SteemitBoard Contest Teaser
The new Steemfest³ Award is ready!

Support SteemitBoard's project! Vote for its witness and get one more award!

nice to meet u

Posted using Partiko Messaging

Congratulations @perduta! You received a personal award!

Thank you for your participation in the "Meet The Steemians" contest in Kraków. We hope you enjoyed it and made lots of new friends. See you at SteemFest4!

Click here to view your Board of Honor

Do not miss the last post from @steemitboard:

Meet the Steemians Contest - The results, the winners and the prizes
Meet the Steemians Contest - Special attendees revealed
Meet the Steemians Contest - Intermediate results

Support SteemitBoard's project! Vote for its witness and get one more award!