The Official Radare2 Book | страница 5
Note that there are I/O plugins that use GDB, WinDbg, or Wine as back-ends, and therefore rely on presence of corresponding third-party tools (in case of remote debugging - just on the target machine).
To build on a system using acr and GNU Make (e.g. on *BSD systems):
$ ./configure --prefix=/usr
$ gmake
$ sudo gmake install
There is also a simple script to do this automatically:
$ sys/install.sh
You can build radare2 statically along with all other tools with the command:
$ sys/static.sh
You can use meson + ninja to build:
$ sys/meson.py --prefix=/usr --shared --install
If you want to build locally:
$ sys/meson.py --prefix=/home/$USER/r2meson --local --shared --install
Radare2 repository ships a Dockerfile that you can use with Docker.
This dockerfile is also used by Remnux distribution from SANS, and is available on the docker registryhub.
Radare2 relies on the Meson build system generator to support compilation on all platforms, including Windows. Meson will generate a Visual Studio Solution, all the necessary project files, and wire up the Microsoft Visual C++ compiler for you.
tip You can download nightly binaries from https://ci.appveyor.com/project/radareorg/radare2/history. Be sure to download only from master branch!
Visual Studio must be installed with a Visual C++ compiler, supporting C++ libraries, and the appropriate Windows SDK for the target platform version.
• In the Visual Studio 2015 installer, ensure Programming Languages > Visual C++ is selected
• In the Visual Studio 2017+ installers, ensure the Desktop development with C++ workload is selected
If you need a copy of Visual Studio, the Community versions are free and work great.
• Download Visual Studio 2015 Community (registration required)
It is strongly recommended you install Conda — a Python environment management system — when working with Python on the Windows platform. This will isolate the Radare2 build environment from other installed Python versions and minimize potential conflicts.
1. Download the appropriate Conda (Python 3.x) for your platform (https://conda.io/miniconda.html)