I've been seeing a lot of posts about building from source and mining STEEM, so naturally I thought I'd shared my build script so you can get started easily.
Here goes:
read -p "Enter your private key: " WIFPRIVATEKEY;
read -p "Enter your account name: " ACCOUNTNAME;
export BOOST_ROOT=$HOME/opt/boost_1_57_0
sudo apt-get update
sudo apt-get install autotools-dev build-essential \
g++ libbz2-dev libicu-dev python-dev
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.57.0/boost_1_57_0.tar.bz2/download'\
-O boost_1_57_0.tar.bz2
sha256sum boost_1_57_0.tar.bz2
# "910c8c022a33ccec7f088bd65d4f14b466588dda94ba2124e78b8c57db264967"
tar xjf boost_1_57_0.tar.bz2
cd boost_1_57_0/
./bootstrap.sh "--prefix=$BOOST_ROOT"
./b2 install
cd ..
git clone https://github.com/steemit/steem
cd steem
cmake -DBOOST_ROOT="$BOOST_ROOT"
make
./steemd --miner=["$ACCOUNTNAME","$WIFPRIVATEKEY"] --witness="$ACCOUNTNAME" --seed-node="52.38.66.234:2001"
Just save the above script in buildsteem.sh
and type chmod +x buildsteem.sh
followed by ./buildsteem.sh
in your terminal.
You will need to run this with a user that's able to do sudo
and provide your password once the script begins.
Note that this may take a while, so you might as well grab a book or take a nap while it builds. If you've configured it correctly you'll be mining in no time.
Hey @andreicon can you help I keep getting an error "Unable to find boost libraries" when I run this command to build steem;
cmake -DBOOST_ROOT="$BOOST_ROOT" -DCMAKE_BUILD_TYPE=Release .
make
I have the library root and dir set in my .bashrc file for the environment variables but I am still getting this error.
export BOOST_ROOT=$HOME/boost_1_60_0
export BOOST_LIBRARYDIR=$HOME/boost_1_60_0/lib
can you help here, do I need to set some more environment variable?
I haven't been around on steemit lately, but i'll try to post a new, updated tutorial.
What i suspect is happening is you're downloading boost_1_57_0.tar.bz2 and extracting it to boost_1_57_0 but then setting the BOOST_ROOT variable to boost_1_60_0. If you could try to correct that to match the name of the archive you're extracting it should work.
Congratulations @andreicon! You have completed some achievement on Steemit and have been rewarded with new badge(s) :
You got a First Reply
Click on any badge to view your own Board of Honnor on SteemitBoard.
For more information about SteemitBoard, click here
If you no longer want to receive notifications, reply to this comment with the word
STOP
By upvoting this notification, you can help all Steemit users. Learn how here!
Congratulations @andreicon! You have received a personal award!
Happy Birthday - 1 Year
Click on the badge to view your own Board of Honor on SteemitBoard.
For more information about this award, click here
Congratulations @andreicon! You received a personal award!
You can view your badges on your Steem Board and compare to others on the Steem Ranking
Vote for @Steemitboard as a witness to get one more award and increased upvotes!