mirror of
https://github.com/xmrig/xmrig.git
synced 2024-12-22 19:49:36 +00:00
Created FreeBSD Build (markdown)
parent
a190e1d803
commit
68993c1db9
1 changed files with 45 additions and 0 deletions
45
FreeBSD-Build.md
Normal file
45
FreeBSD-Build.md
Normal file
|
@ -0,0 +1,45 @@
|
|||
## FreeBSD 11
|
||||
There are 2 different ways of installing XMRig on FreeBSD 11.
|
||||
|
||||
### 1. Installation via the ports collection:
|
||||
```bash
|
||||
cd /usr/ports/net-p2p/xmrig && make install clean
|
||||
```
|
||||
*or*
|
||||
```bash
|
||||
cd /usr/ports/ports-mgmt/portmaster && make install clean
|
||||
portmaster net-p2p/xmrig
|
||||
```
|
||||
|
||||
### 2. Using binary packages and building XMRig from source:
|
||||
|
||||
Using Clang:
|
||||
```bash
|
||||
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:
|
||||
```bash
|
||||
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
|
||||
|
||||
* `-DWITH_LIBCPUID=OFF` Disable libcpuid. Auto configuration of CPU after this will be very limited.
|
||||
* `-DWITH_AEON=OFF` Disable CryptoNight-Lite support.
|
||||
* `-DWITH_HTTPD=OFF` Build without built-in httpd and API.
|
||||
* `-DUV_LIBRARY=/usr/local/lib/libuv.a` Use static libuv version.
|
||||
* `-DMHD_LIBRARY=/usr/local/lib/libmicrohttpd.a` Use static libmicrohttpd version.
|
Loading…
Reference in a new issue