Bitcoin Forum
December 15, 2024, 06:51:28 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: running bitcoin  (Read 174 times)
belart (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 6


View Profile
May 29, 2021, 09:34:51 PM
Last edit: May 30, 2021, 12:35:08 PM by belart
Merited by LoyceV (2), o_e_l_e_o (2)
 #1

Dear Bitcoiners,

Today i am running bitcoin for the first time, on a MacBook Pro M1 (ARM). I compiled towards arm64-apple-darwin20.4.0. After installing dependencies with homebrew, here are the steps I followed:

Code:
git clone git@github.com:bitcoin/bitcoin.git

# install dependencies forcing compilation towards arm64 architecture
cd bitcoin/depends
echo "echo arm64-apple-darwin20.4.0 > config.guess"
chmod +x config.guess
make

# compile bitcoin
cd ..
./autogen.sh
CPPFLAGS=-I/opt/homebrew/opt/libevent/include ./configure --without-bdb --disable-zmmq --disable-zmq --with-boost=/opt/homebrew/opt/boost/ --with-gui=no --prefix=$PWD/depends/arm64-apple-darwin20.4.0

# run it :D
./src/bitcoind

This is awesome.
NotATether
Legendary
*
Offline Offline

Activity: 1820
Merit: 7478


Top Crypto Casino


View Profile WWW
May 30, 2021, 07:28:04 AM
 #2

Your ./configure flags disabled Berkeley DB which also disables wallet functionality. Is this what you want?

Inside the bitcoin source repository, there's a script called contrib/install-db4.sh which will build a Berkeley DB in the root folder of the bitcoin source tree.

It is used like this:

Code:
# cd to the bitcoin root folder
./contrib/install-db4.sh "$(pwd)"
export BDB_PREFIX="$(pwd)/db4"
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"  # Add your other options here

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
belart (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 6


View Profile
May 30, 2021, 12:22:28 PM
 #3

Your ./configure flags disabled Berkeley DB which also disables wallet functionality. Is this what you want?

Inside the bitcoin source repository, there's a script called contrib/install-db4.sh which will build a Berkeley DB in the root folder of the bitcoin source tree.

It is used like this:

Code:
# cd to the bitcoin root folder
./contrib/install-db4.sh "$(pwd)"
export BDB_PREFIX="$(pwd)/db4"
./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include"  # Add your other options here

Thank you for these indications, I didn't know about the script Smiley. I was compiling bitcoin for the first time and turned off everything which gave me trouble. I did eventually build with Berkeley DB enabled.
belart (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 6


View Profile
May 30, 2021, 12:33:17 PM
Merited by LoyceV (2)
 #4

Welcome to Bitcointalk Smiley. Since you mention you run Bitcoin (full node) for first time, you need to know current blockchain size is almost 400GB. If your Macbook Pro M1 has 512GB or less, you might want to use pruned mode which only store few last hundred blocks.

Your ./configure flags disabled Berkeley DB which also disables wallet functionality. Is this what you want?

I also notice OP explicitly disable GUI (although looks like OP prefer bitcoin-cli) and ZeroMQ which could be useful to build application which rely on Bitcoin Core data (although it's more common to use RPC-JSON).

Thanks Smiley

I indeed only have 512GB and discovered the blockchain size the hard way this morning when bitcoind shut down and MacOS complained about disk utilization. I got to 96% ! So close... I'll try out pruned mode today. I ordered an external SSD to download the entire blockchain. I want to study the data and replicate some of the indicators Glassnode developed Smiley.

Concerning ZeroMQ & the GUI, I did eventually compile with these flags enabled. Everything seems to work as expected except the GUI. The latter "unexpectedly stops" whenever I try to open it. Anyways, I don't need wallet (or GUI) functionality since I'm only running a node to support the network and study it.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!