The Official Radare2 Book | страница 6
2. Install Conda with the recommended defaults
Follow these steps to create and activate a Conda environment named r2. All instructions from this point on will assume this name matches your environment, but you may change this if desired.
1. Start > Anaconda Prompt
2. conda create -n r2 python=3
3. activate r2
Any time you wish to enter this environment, open the Anaconda Prompt and re-issue activate r2. Conversely, deactivate will leave the environment.
1. Enter the Radare2 Conda environment, if needed (activate r2)
2. Download https://github.com/mesonbuild/meson/archive/master.zip
3. pip install \path\to\downloaded\master.zip
4. Verify Meson is version 0.48 or higher (meson -v)
All Radare2 code is managed via the Git version control system and hosted on GitHub.
Follow these steps to install Git for Windows.
1. Download Git for Windows (https://git-scm.com/download/win)
As you navigate the install wizard, we recommend you set these options when they appear: * Use a TrueType font in all console windows * Use Git from the Windows Command Prompt * Use the native Windows Secure Channel library (instead of OpenSSL) * Checkout Windows-style, commit Unix-style line endings (core.autocrlf=true) * Use Windows' default console window (instead of Mintty)
2. Close any previously open console windows and re-open them to ensure they receive the new PATH
3. Ensure git --version works
Follow these steps to clone the Radare2 git repository.
1. In your Radare2 Conda environment, navigate to a location where the code will be saved and compiled. This location needs approximately 3-4GiB of space
2. Clone the repository with git clone https://github.com/radareorg/radare2.git
Follow these steps to compile the Radare2 Code.
Compiled binaries will be installed into the dest folder.
1. Enter the Radare2 Conda environment
2. Navigate to the root of the Radare2 sources (cd radare2)
3. Initialize Visual Studio tooling by executing the command below that matches the version of Visual Studio installed on your machine and the version of Radare2 you wish to install:
Visual Studio 2015:
Note: For the 64-bit version change only the x86 at the very end of the command below to x64.
"%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x86