What dependencies are needed to build Monero?
Building Monero successfully requires a specific set of libraries and tools.
Quick Answer
To build Monero, you must have a C++ compiler (like GCC or Clang), CMake, and several development libraries installed, including Boost, OpenSSL, libzmq, libsodium, and libunbound. These components provide the cryptographic, networking, and memory management functionality that the core Monero protocol requires.
Essential Libraries
Libraries like Boost provide fundamental C++ utilities, while OpenSSL is critical for cryptographic operations. libzmq is used for networking, and libunbound handles DNS resolution in a privacy-preserving manner.
You can install these via your system's package manager. Always ensure your versions meet or exceed the minimum requirements specified in the documentation.
Build and Test Tools
Tools like 'ccache' can significantly speed up subsequent builds by caching previously compiled code. 'Doxygen' and 'Graphviz' are optional but useful if you plan on generating internal documentation.
The repository includes vendored source code for some dependencies, but it is standard practice to use the libraries provided by your system to benefit from updates and security patches.
Sources
Related reading
Key takeaways
- Ensure all required system-level dependencies are installed.
- Package managers simplify the installation of these libraries.
