3

I would like to build a specific branch of Monero, and I would like help setting it up to build on Debian. Can someone help me please?

3

Start by opening a terminal and installing all the dependencies:

sudo apt-get install libgtest-dev && cd /usr/src/gtest && sudo cmake . && sudo make && sudo mv libg* /usr/lib/

sudo apt-get install build-essential cmake pkg-config libboost-all-dev libssl-dev libzmq3-dev libunbound-dev libsodium-dev

cd to the directory you want to download the files to. For example, if you want to go to the home directory (recommended for beginners), use cd ~.

Clone the repository:

git clone --recursive https://github.com/monero-project/monero

^ if you are using a branch from another contributor, then the URL will be different. Adjust accordingly.

cd monero && git submodule init && git submodule update

(Replace monero with bitmonero if this doesn't work)

Check out the desired branch. Replace <branch> with the name of the branch:

git checkout <branch>

You can finally build the binaries. Replace <t> with the number of cores your CPU has.

make -j <t> (eg: make -j 2)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.