From ad0b3972de5bc26536903bc07c3e6f68904a4733 Mon Sep 17 00:00:00 2001 From: woodser Date: Thu, 8 Feb 2024 05:31:42 -0500 Subject: [PATCH] add unbound 1.19 instructions for mac --- README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 64057f1..1ae7294 100644 --- a/README.md +++ b/README.md @@ -192,15 +192,15 @@ For example, [monero-java](https://github.com/woodser/monero-java) compiles this For example, install unbound: ``` cd ~ - wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.17.0.tar.gz - tar xzf unbound-1.17.0.tar.gz + wget https://www.nlnetlabs.nl/downloads/unbound/unbound-1.19.0.tar.gz + tar xzf unbound-1.19.0.tar.gz sudo apt update sudo apt install -y build-essential sudo apt install -y libssl-dev sudo apt install -y libexpat1-dev sudo apt-get install -y bison sudo apt-get install -y flex - cd unbound-1.17.0 + cd unbound-1.19.0 ./configure --with-libexpat=/usr --with-ssl=/usr make sudo make install @@ -214,6 +214,17 @@ For example, [monero-java](https://github.com/woodser/monero-java) compiles this 1. Clone the project repository if applicable: `git clone --recurse-submodules https://github.com/woodser/monero-cpp.git` 2. Update submodules: `cd monero-cpp && ./bin/update_submodules.sh` 3. Follow instructions to install [unbound](https://unbound.docs.nlnetlabs.nl/en/latest/getting-started/installation.html) for macOS to your home directory (e.g. `~/unbound-1.19.0`). + + For example: + ``` + cd ~ + wget https://nlnetlabs.nl/downloads/unbound/unbound-1.19.0.tar.gz + tar xzf unbound-1.19.0.tar.gz + cd ~/unbound-1.19.0 + ./configure --with-ssl=/opt/homebrew/Cellar/openssl@3/3.2.1/ --with-libexpat=/opt/homebrew/Cellar/expat/2.5.0 + make + sudo make install + ``` 4. Build monero-project, located as a submodule at ./external/monero-project. Install [dependencies](https://github.com/monero-project/monero#dependencies) as needed for your system, then build with: `make release-static -j8` 5. Link to this library's source files in your application, or build monero-cpp to a shared library in ./build: `./bin/build_libmonero_cpp.sh`