CCMiner: how to compile on Linux (Ubuntu/Fedora) and macOS
In this article, we will look at building methods for CCMiner for Linux and macOS. you can use ./build.sh to configure and build with default settings. Recommended to run ./autogen.sh before ./configure (autoconf and automake for autogen.sh to work must be installed on your system) ./configure has a parameter called –with-cuda that allows you to specify where your CUDA 6.5 toolkit is installed (usually / usr / local / cuda, but some distributions may have a different default location)
Step 3: CUDA SDK (Download the .run shared archive from nvidia)
1. --override is required to ignore "too recent" gcc 6.3
2. --silent is required to install only the toolkit (no kmod)
3. ./cuda_8.0.61_375.26_linux.run --toolkit --silent --override
4. nvcc --version
Add nvcc binary path to system
ln -s /usr/local/cuda-8.0 / usr / local / cuda # (if not already done)
echo 'export PATH = $ PATH: / usr / local / cuda / bin'> /etc/profile.d/cuda.sh
Add cudart library path to the system
echo / usr / local / cuda / lib64> /etc/ld.so.conf.d/cuda.conf LDCONFIG
Note: this manual method will override gcc by default, it might be better to use a custom tool chain prefix
wget ftp://ftp.lip6.fr/pub/gcc/releases/gcc-5.4.0/gcc-5.4.0.tar.bz2
dnf install libmpc-devel mpfr-devel gmp-devel
./configure --prefix = / usr / local --enable-languages = c, c ++, lto --disable-multilib
make -j 8 && make install
(while at this point you have time to cook something: p)
# or, for previous versions of fedora, edit the file /usr/local/cuda/include/host_config.h
# and comment / delete line 121: #error is an unsupported version of GNU! Versions of gcc over 5 are not supported!
./build.sh
./ccminer -n
How to compile CCMiner on macOS
Step 1: download and install CUDA Toolkit 8 or later
Read more articles about cryptocurrencies and mining at CRAZY-MINING.ORG
Do you like to read similar articles about cryptocurrencies and mining, do you want to support me as an author or ask questions? Be the first to know the news, subscribe to my telegram channel CRYPTO WIKIES
Post Comment