I've been wanted to get a Steem witness node running on my home iMac for a while for testing purposes and to provide me with the option of using it as a temporary backup for the @c-squared witness that I run if required. With the option of [MIRA](https://steemit.com/mira/@steemitblog/mira-soft-roll-out-begins) I believed it was possible without having to upgrade to 64GB of memory but I have always had a problem building the code. Even though Mac OS is effectively a flavour of Unix, the instructions for building on Linux do not work. There are some old instructions for building on Mac OS but these don't work either, especially with RocksDB running MIRA. I'm not sure anyone has gotten this working, I've certainly not been able to find any published instructions. I have finally managed to get the code built with the following instructions. # Instructions Let's start with the standard stuff to get things installed and compiled on Mac OS. - Install Xcode using the [Apple App Store](https://apps.apple.com/gb/app/xcode/id497799835?mt=12) - Install [Homebrew](https://brew.sh/) ``` /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" ``` - Initialise Homebrew ``` brew doctor brew update ``` Now onto some steem specifics..... - Install steem dependencies ``` brew install \ autoconf \ automake \ cmake \ git \ boost160 \ libtool \ openssl \ snappy \ zlib \ bzip2 \ python3 \ doxygen pip install --user jinja2 ``` Now you will want to set up some environment variables before doing the build. Below are the versions that I know work. You may find that the default versions installed by brew are not the correct ones. It is worth finding the location of your Brew Cellar before you do this just so you can check what versions are installed. Mine is installed in /usr/local/Cellar ``` Marks-iMac:bin mark$ brew --prefix /usr/local ``` Do the exports ``` export BOOST_ROOT=$(brew --prefix)/Cellar/boost@1.60/1.60.0/ # doesnt work - export OPENSSL_ROOT_DIR=$(brew --prefix)/Cellar/openssl@1.1/1.1.1c/ export OPENSSL_ROOT_DIR=$(brew --prefix)/Cellar/openssl/1.0.2s export SNAPPY_ROOT_DIR=$(brew --prefix)/Cellar/snappy/1.1.7_1 export ZLIB_ROOT_DIR=$(brew --prefix)/Cellar/zlib/1.2.11 export BZIP2_ROOT_DIR=$(brew --prefix)/Cellar/bzip2/1.0.6_1 ``` Note that the latest version of openssl did not work with steemd so i had to run ``` brew install openssl@1.0.2s ``` To get a version that worked. It's definitely worth going through the versions here and checking that the versions on the environment variable above match what you have downloaded with Homebrew, and if they aren't get the proper version. The above builds fine, but when you get to the final stage in the process, the final linking operation throws a wobbly thanks to some restrictions on Mac OS with linking the OpenSSL libraries from the above. For that reason, you need to add the following export to the list (assuming this is the location of your Mac OS openssl library) ``` export LDFLAGS="-L/usr/local/opt/openssl/lib/" ``` Now for some standard steem manual build stuff to get the code from the repo, check out the right version and create the build folder. ``` git clone https://github.com/steemit/steem git checkout v0.22.1 git submodule update --init --recursive mkdir build && cd build ``` The next command is slightly different from standard as you need to specify the BOOST_ROOT parameter ``` cmake -DBOOST_ROOT="$BOOST_ROOT" -DENABLE_MIRA=ON -DLOW_MEMORY_NODE=ON -DCMAKE_BUILD_TYPE=Release .. ``` This next bit took me a while to work out. When i was building the MIRA version, i was getting a load of errors like this. ```Undefined symbols for architecture x86_64:``` This appears to be caused by some kind of missing symbols tables in RocksDB that steem is looking for. So I found this in the RocksDB documentation and thought i'd give it a go ``` # * DEBUG_LEVEL=0; this is the debug level we use for release. If you're # running rocksdb in production you most definitely want to compile RocksDB # with debug level 0. ``` So running ```make``` with the following command builds steemd. ``` DEBUG_LEVEL=0 make -j$(sysctl -n hw.logicalcpu) steemd ``` and of course, cli_wallet ``` DEBUG_LEVEL=0 make -j$(sysctl -n hw.logicalcpu) cli_wallet ``` Then copy the executables to a local folder of your choice ``` mkdir ~/bin cp programs/steemd/steemd ~/bin cp programs/cli_wallet/cli_wallet ~/bin ``` Then run steemd to check the version ``` ~/bin/steemd --version ```  ### TA-DAAAA, steemd built and running on Mojave. --- I'm currently downloading a recent block_log which takes a while on a home internet connection. Once this is done, im going to be trying to get this running. I suspect that the replay may take a few days and I am going to have to have a play with Mac OS ```ulimits``` as apparently they can be pretty hard to change properly and are probably worth a post on their own. Hope this helps people with Mac OS to get a witness built and up and running. Of course, i wouldn't suggest that you run a witness 24/7 on a personal Mac, but its definitely good for experimentation and development at home and possibly a temporary backup. If you have any problems when you try this, be sure to drop me a message on discord or in the comments below. Mark --- <div class="pull-left">  </div> @c-squared runs a community focused witness node. Please consider voting for us here if you would like to support our witness operations.
author | markangeltrueman |
---|---|
permlink | running-a-steem-witness-node-on-macos-mojave-part-1-the-build |
category | stemgeeks |
json_metadata | {"app":"steempeak/1.15.5","format":"markdown","tags":["stemgeeks","steem","witness","macos","palnet","witness-category","dev","steemstem"],"users":["c-squared","steemitblog","1.60","1.1","1.0.2s"],"links":["/@c-squared","/mira/@steemitblog/mira-soft-roll-out-begins","https://apps.apple.com/gb/app/xcode/id497799835?mt=12","https://brew.sh/","/@c-squared"],"image":["https://files.steempeak.com/file/steempeak/markangeltrueman/BoD6nVuE-Screenshot202019-09-0920at2018.51.26.png","https://files.steempeak.com/file/steempeak/markangeltrueman/iMSFW51J-image.png"]} |
created | 2019-09-09 19:31:27 |
last_update | 2019-09-09 19:55:03 |
depth | 0 |
children | 10 |
last_payout | 2019-09-16 19:31:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 3.190 HBD |
curator_payout_value | 3.004 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 5,790 |
author_reputation | 75,759,505,276,179 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,418,106 |
net_rshares | 17,394,443,312,134 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ausbitbank | 0 | 2,062,232,242,960 | 100% | ||
arcange | 0 | 40,216,669,035 | 3% | ||
raphaelle | 0 | 1,038,859,719 | 3% | ||
cornerstone | 0 | 1,335,476,269,670 | 25% | ||
doitvoluntarily | 0 | 14,301,060,109 | 100% | ||
abh12345 | 0 | 42,461,190,562 | 8% | ||
velocity007 | 0 | 47,460,022 | 100% | ||
techslut | 0 | 18,253,858,194 | 4% | ||
teamhumble | 0 | 22,581,372,525 | 20% | ||
erikaflynn | 0 | 1,700,393,659 | 5% | ||
annazsarinacruz | 0 | 179,094,009 | 6.59% | ||
choogirl | 0 | 3,287,610,855 | 6.59% | ||
sepracore | 0 | 4,170,671,465 | 100% | ||
kennyroy | 0 | 86,012,607 | 3.29% | ||
yehey | 0 | 10,016,087,818 | 10% | ||
ticopurelife | 0 | 177,090,272,750 | 100% | ||
sam99 | 0 | 447,600,288 | 10% | ||
drakos | 0 | 3,668,030,305,504 | 100% | ||
pinoy | 0 | 136,699,594 | 10% | ||
ew-and-patterns | 0 | 128,834,268,602 | 3% | ||
guchtere | 0 | 8,980,594,152 | 100% | ||
digitalis | 0 | 201,140,052 | 1.97% | ||
hope-on-fire | 0 | 13,306,300,327 | 10% | ||
themarkymark | 0 | 3,486,871,373,571 | 20% | ||
leveragetrading | 0 | 184,370,007 | 46% | ||
unsw | 0 | 245,212,630 | 51% | ||
rye05 | 0 | 152,167,519 | 2.63% | ||
cepul | 0 | 188,065,368 | 6.59% | ||
sbdraffle | 0 | 411,841,483 | 79% | ||
steemph.manila | 0 | 1,724,808,968 | 13.18% | ||
bluefinstudios | 0 | 32,125,585,092 | 100% | ||
geekpowered | 0 | 229,958,137,050 | 100% | ||
tomatom | 0 | 179,870,517 | 6.59% | ||
steemsearch | 0 | 547,989,045 | 100% | ||
mattiarinaldoni | 0 | 184,545,211 | 6.59% | ||
randomwanderings | 0 | 2,338,318,171 | 15% | ||
didic | 0 | 10,530,907,045 | 20% | ||
veryspider | 0 | 36,957,530,393 | 25% | ||
henryconache | 0 | 85,324,350 | 6.59% | ||
asgarth | 0 | 1,020,444,595,931 | 100% | ||
llfarms | 0 | 34,513,816,832 | 100% | ||
sanderjansenart | 0 | 8,012,901,214 | 12.5% | ||
adamada | 0 | 9,680,994,287 | 25% | ||
gabyoraa | 0 | 116,247,412 | 6.59% | ||
stmdev | 0 | 28,568,696 | 1% | ||
tibfox | 0 | 78,164,888,846 | 100% | ||
tesmoforia | 0 | 1,527,807,220 | 10% | ||
saboin | 0 | 16,589,361,326 | 6.59% | ||
kendallron | 0 | 70,299,939 | 6.59% | ||
wirago | 0 | 8,042,985,594 | 100% | ||
kiddady | 0 | 0 | 100% | ||
upboater | 0 | 201,748,740,012 | 20% | ||
lazybird | 0 | 70,391,689 | 20% | ||
kadoshmenorah | 0 | 3,115,102,365 | 100% | ||
alexworld | 0 | 1,111,058,733 | 50% | ||
jorgeddln | 0 | 73,351,303 | 6.59% | ||
sagesigma | 0 | 253,294,196 | 1% | ||
sarez | 0 | 1,787,327,393 | 9.22% | ||
loreshapergames | 0 | 7,881,410,163 | 12.5% | ||
virgilvorce | 0 | 418,124,126 | 100% | ||
longer | 0 | 575,361,718 | 50% | ||
kafupraise | 0 | 191,439,318 | 50% | ||
scrawly | 0 | 36,009,169,172 | 25% | ||
kwilley | 0 | 845,330,110 | 25% | ||
dog-marley | 0 | 8,263,614,878 | 100% | ||
c-squared | 0 | 33,272,609,391 | 13.18% | ||
laissez-faire | 0 | 74,845,706 | 100% | ||
liucixin | 0 | 801,210,869 | 9.76% | ||
steemexpress | 0 | 2,305,666,285 | 3.74% | ||
goodcontentbot | 0 | 46,486,099 | 50% | ||
louis.random | 0 | 346,983,863 | 100% | ||
thewhalehunter | 0 | 47,949,093 | 50% | ||
mrbarckhoff | 0 | 47,729,501 | 25% | ||
brendanweinhold | 0 | 14,044,647 | 100% | ||
bitcoingodmode | 0 | 297,150,379 | 75% | ||
crivec68 | 0 | 324,834,390 | 3.29% | ||
genuinehuman | 0 | 103,336,532 | 3.95% | ||
onespringday | 0 | 709,793,025 | 10% | ||
likwid | 0 | 2,405,450,638,095 | 20% | ||
justineh | 0 | 673,016,505,908 | 100% | ||
we-are-palcoin | 0 | 60,046,046 | 9.38% | ||
midlet-yourpal | 0 | 101,127,553 | 6.59% | ||
abh12345.pal | 0 | 44,627,777 | 10% | ||
felt.buzz.pal | 0 | 393,468,128 | 45% | ||
abh12345.stem | 0 | 906,383,124 | 100% | ||
sasifuddin | 0 | 367,339,550 | 100% | ||
mintdice | 0 | 1,479,813,474,268 | 100% | ||
c-squared-pal | 0 | 19,358,385 | 20.69% | ||
null.ptr | 0 | 0 | 100% | ||
raj808-ccc | 0 | 127,848,796 | 30% | ||
raj808-pal | 0 | 127,146,016 | 30% | ||
cryptoryaz | 0 | 324,445,337 | 100% |
Curious, what machine. Which device?
author | bluefinstudios |
---|---|
permlink | pxlk09 |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steemit/0.1"} |
created | 2019-09-10 03:50:33 |
last_update | 2019-09-10 03:50:33 |
depth | 1 |
children | 2 |
last_payout | 2019-09-17 03:50:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 36 |
author_reputation | 199,156,275,708,072 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,428,540 |
net_rshares | 33,524,267,627 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
shadowspub | 0 | 33,524,267,627 | 37% |

author | markangeltrueman |
---|---|
permlink | re-bluefinstudios-pxlxjp |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steempeak/1.15.5"} |
created | 2019-09-10 08:43:12 |
last_update | 2019-09-10 08:43:12 |
depth | 2 |
children | 1 |
last_payout | 2019-09-17 08:43:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 149 |
author_reputation | 75,759,505,276,179 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,434,556 |
net_rshares | 0 |
Interesting... cuz, it's not a packed, fully loaded one. Imagine if it was a MacPro
author | bluefinstudios |
---|---|
permlink | pxm8q4 |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steemit/0.1"} |
created | 2019-09-10 12:44:27 |
last_update | 2019-09-10 12:44:27 |
depth | 3 |
children | 0 |
last_payout | 2019-09-17 12:44:27 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 83 |
author_reputation | 199,156,275,708,072 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,440,157 |
net_rshares | 35,369,260,452 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
shadowspub | 0 | 35,369,260,452 | 37% |
<div class="pull-left">https://cdn.steemitimages.com/DQmaSUWYsJ3AMUEMRqCSaoKJVNvtsbKm4fNAtmTidr8Uggc/C%20Squared%20Logo%20Transparency%20200px.png</div><br>This post was shared in the <a href="https://discord.gg/B8JFmJ4">Curation Collective Discord community</a> for curators, and upvoted and resteemed by the @c-squared community account after manual review.<br/>@c-squared runs a <a href="https://steemit.com/witness/@c-cubed/announcing-the-launch-of-the-new-c-squared-witness">community witness</a>. Please consider using one of your witness votes on us <a href ="https://steemconnect.com/sign/account-witness-vote?witness=c-squared&approve=true">here</a>
author | c-squared |
---|---|
permlink | 20190909t194201470z |
category | stemgeeks |
json_metadata | {"tags":["c-squared"]} |
created | 2019-09-09 19:42:30 |
last_update | 2019-09-09 19:42:30 |
depth | 1 |
children | 0 |
last_payout | 2019-09-16 19:42:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 658 |
author_reputation | 8,872,520,093,091 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,418,482 |
net_rshares | 0 |
cool hopefully the replay goes ok. Nice work
author | carlgnash |
---|---|
permlink | re-markangeltrueman-pxl3ey |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steempeak/1.15.5"} |
created | 2019-09-09 21:52:12 |
last_update | 2019-09-09 21:52:12 |
depth | 1 |
children | 0 |
last_payout | 2019-09-16 21:52:12 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 45 |
author_reputation | 114,786,060,260,950 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,421,689 |
net_rshares | 0 |
I donβt know what half of this means, but Iβm still impressed. *tips hat*
author | justineh |
---|---|
permlink | pxkxd9 |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steemit/0.1"} |
created | 2019-09-09 19:41:36 |
last_update | 2019-09-09 19:41:36 |
depth | 1 |
children | 1 |
last_payout | 2019-09-16 19:41:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 73 |
author_reputation | 171,050,398,797,557 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,418,451 |
net_rshares | 0 |
It's the matrix and stuff.
author | markangeltrueman |
---|---|
permlink | re-justineh-pxkxtg |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steempeak/1.15.5"} |
created | 2019-09-09 19:51:18 |
last_update | 2019-09-09 19:51:18 |
depth | 2 |
children | 0 |
last_payout | 2019-09-16 19:51:18 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 26 |
author_reputation | 75,759,505,276,179 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,418,705 |
net_rshares | 0 |
interesting, well researched. i'd be worried about that vulnerable openssl thou no?
author | teamhumble |
---|---|
permlink | pxky8y |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steemit/0.1"} |
created | 2019-09-09 20:00:36 |
last_update | 2019-09-09 20:00:36 |
depth | 1 |
children | 1 |
last_payout | 2019-09-16 20:00:36 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 83 |
author_reputation | 315,232,864,758,316 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,418,924 |
net_rshares | 3,770,944,395 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ezravandi | 0 | 3,770,944,395 | 1.02% |
Quite possibly yeah. Tried a load of recent versions and none of them would work though :(. The linked SSL libraries are the MacOS ones however, so.....
author | markangeltrueman |
---|---|
permlink | re-teamhumble-pxkyhq |
category | stemgeeks |
json_metadata | {"tags":["stemgeeks"],"app":"steempeak/1.15.5"} |
created | 2019-09-09 20:05:54 |
last_update | 2019-09-09 20:07:06 |
depth | 2 |
children | 0 |
last_payout | 2019-09-16 20:05:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 153 |
author_reputation | 75,759,505,276,179 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,419,069 |
net_rshares | 0 |
To listen to the audio version of this article click on the play image. [](http://ec2-52-72-169-104.compute-1.amazonaws.com/markangeltrueman__running-a-steem-witness-node-on-macos-mojave-part-1-the-build.mp3) Brought to you by [@tts](https://steemit.com/tts/@tts/introduction). If you find it useful please consider upvoting this reply.
author | tts |
---|---|
permlink | re-running-a-steem-witness-node-on-macos-mojave-part-1-the-build-20190909t194153 |
category | stemgeeks |
json_metadata | "" |
created | 2019-09-09 19:41:54 |
last_update | 2019-09-09 19:41:54 |
depth | 1 |
children | 0 |
last_payout | 2019-09-16 19:41:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 389 |
author_reputation | -4,535,154,553,995 |
root_title | "Running a steem witness node on MacOS Mojave - Part 1, The Build." |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 90,418,463 |
net_rshares | -4,429,027,224 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
markangeltrueman | 0 | -4,429,027,224 | -51% |