1 KiB
1 KiB
FreeBSD build instructions
This document aims to explain the steps needed to build r2 and r2b-python on FreeBSD.
- Note that
make(from GNU) is namedgmake - Stuff is installed in /usr/local
- clang (or gcc) is named cc and clang++ (or g++) is c++
- valabind is not packaged in the ports
Radare2 Dependencies:
sudo pkg install git gcc gmake patch pkgconf
git clone https://github.com/rizinorg/rizin
cd rizin
sys/install.sh /usr/local
Python Swig Bindings Dependencies:
sudo pkg install swig30 pkgconf vala
git clone https://github.com/radare/valabind
cd valabind
gmake
sudo gmake install PREFIX=/usr/local
Building Python Swig Bindings:
git clone https://github.com/rizinorg/rizin-bindings
cd rizin-bindings
export CC=cc
export CXX=c++
export SWIG=swig3.0
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
./configure --prefix=/usr/local
cd python
gmake CC=$CC CXX=$CXX
sudo gmake install