Page:
FreeBSD Build
Clone
8
FreeBSD Build
xmrig edited this page 2020-08-28 23:20:40 +07:00
⚠️ Recent version of this page https://xmrig.com/docs/miner/build/freebsd.
Old page
## FreeBSD 11 There are 2 different ways of installing XMRig on FreeBSD 11.Thanks z3dm4n for these instructions.
1. Installation via the ports collection:
cd /usr/ports/net-p2p/xmrig && make install clean
or
cd /usr/ports/ports-mgmt/portmaster && make install clean
portmaster net-p2p/xmrig
2. Using binary packages and building XMRig from source:
Using Clang:
pkg install git clang38 cmake libuv libmicrohttpd
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake ..
make
or
Using GCC:
pkg install git gcc7 cmake libuv libmicrohttpd
git clone https://github.com/xmrig/xmrig.git
cd xmrig
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=gcc7 -DCMAKE_CXX_COMPILER=g++7 ..
make
Additional CMake options
-DUV_LIBRARY=/usr/local/lib/libuv.a
Use static libuv version.-DMHD_LIBRARY=/usr/local/lib/libmicrohttpd.a
Use static libmicrohttpd version.- https://github.com/xmrig/xmrig/wiki/Windows-Build#additional-cmake-options