Update README.md

This commit is contained in:
xmrig 2017-06-14 16:18:13 +03:00 committed by GitHub
parent 5af169fd7b
commit 33d752bcaa

View File

@ -73,7 +73,7 @@ Since version 0.8.0.
## Build ## Build
### Ubuntu (Debian-based distros) ### Ubuntu (Debian-based distros)
``` ```
sudo apt-get install git build-essential cmake libcurl4-openssl-dev sudo apt-get install git build-essential cmake libuv1-dev
git clone https://github.com/xmrig/xmrig.git git clone https://github.com/xmrig/xmrig.git
cd xmrig cd xmrig
mkdir build mkdir build
@ -81,6 +81,16 @@ cd build
cmake .. -DCMAKE_BUILD_TYPE=Release cmake .. -DCMAKE_BUILD_TYPE=Release
make make
``` ```
#### gcc 7.1
```
sudo add-apt-repository ppa:jonathonf/gcc-7.1
sudo apt-get update
apt-get install gcc-7 g++-7
```
When run cmake manually specify C and C++ compiler:
```
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=/usr/bin/gcc-7 -DCMAKE_CXX_COMPILER=/usr/bin/g++-7
```
### Windows ### Windows
It's complicated, you need [MSYS2](http://www.msys2.org/), custom libcurl build, and of course CMake too. It's complicated, you need [MSYS2](http://www.msys2.org/), custom libcurl build, and of course CMake too.