How to run Bitcoin SV on MacOS?
I would like to run Bitcoin SV software on MacOS, but I noticed that there are no binaries available. How to compile it on MacOS? Are there any alternatives that do not require compilation from scratch?
I would like to run Bitcoin SV software on MacOS, but I noticed that there are no binaries available. How to compile it on MacOS? Are there any alternatives that do not require compilation from scratch?
It is true that there are no official binaries available, but one can compile it manually. There are a few tweaks that need to be done to the code in order for compiler to suceed:
xcode-select --install
brew install automake libtool boost miniupnpc openssl pkg-config protobuf python qt libevent qrencode
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/berkeley-db.rb
diff --git a/src/init.cpp b/src/init.cpp
index 6dc8b6132..c1ad51e0f 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -21,6 +21,7 @@
#include "fs.h"
#include "httprpc.h"
#include "httpserver.h"
+#include "inttypes.h"
#include "key.h"
#include "mining/legacy.h"
#include "net.h"
diff --git a/src/rpc/misc.cpp b/src/rpc/misc.cpp
index 615fb38b2..387fd7187 100644
--- a/src/rpc/misc.cpp
+++ b/src/rpc/misc.cpp
@@ -18,14 +18,15 @@
#include "util.h"
#include "utilstrencodings.h"
#include "validation.h"
+
#ifdef ENABLE_WALLET
#include "wallet/rpcwallet.h"
#include "wallet/wallet.h"
#include "wallet/walletdb.h"
-#include "vmtouch.h"
-
#endif
+#include “vmtouch.h” + #include <univalue.h>
#include <cstdint>
7. Bump C++ standard for the bundled univalue library (See [pull request](https://github.com/bitcoin-sv/bitcoin-sv/pull/101).)
8. Build the software (replace "18.1.32_1" with the version of BerkleyDB) by running the following in the root folder of the source:
./autogen.sh ./configure –without-gui LDFLAGS=”-L/usr/local/Cellar/berkeley-db/18.1.32_1/lib” CPPFLAGS=”-I/usr/local/Cellar/berkeley-db/18.1.32_1/include” make
9. Assuming that the compilation completed without errors you will be able to find binaries in `./src` (i.e. `./src/bitcoind`, `./src/bitcoin-cli`, ...)
10. Now you can use `make check` to run the test suite and `make deploy` to install the software.
You can check the downloads on the project website here.
Downloads link: https://download.bitcoinsv.io/bitcoinsv/
I believe it was in a conference video or maybe on social media, when I heard, I believe it was Shadders or maybe CSW saying that the reason why was for enterprise-level scaling, it it no longer part of the roadmap to support home computer (Mac / PC) Bitcoin mining.
I forked Bitcoin-SV to add GitPod.IO support so you can spin up a node in record time.
Just click https://gitpod.io/#https://github.com/auxon/bitcoin-sv to spin up a node with one click, wait a bit, then just run:
make make install
From your terminal. I am going to update it so it runs the final 2 steps in another branch and starts syncing.
For local development, you already got an answer above. However, all the steps can be automated for MacOS local development as well.
HTH,
RAH
It’s easy, you run it inside (Ubuntu) docker.
However, I see no point in running a Bitcoin SV node software on a MacOS.
You are creating this answer as an anonymous user. If you log in we will be able to store the draft as you write it.