Centos 7 Cudaminer Nvidia setup guide

I am using a GTX 1060 but replace the download for the driver with the correct/current version for your particular card by visiting: http://www.nvidia.com/Download/index.aspx?lang=en-us


yum install automake curl openssl-devel libcurl-devel gcc gcc-c++

yum -y install kernel-devel-`uname -r`

yum -y install unzip
#the uname -r command is important it installs the kernel-devel source for your exact running kernel
#otherwise usually you will be running an older kernel and kernel-devel alone would install a newer kernel-devel which the driver cannot use (you need matching running kernel and kernel-devel for it to work)
wget http://us.download.nvidia.com/XFree86/Linux-x86_64/375.66/NVIDIA-Linux-x86_64-375.66.run
bash NVIDIA-Linux-x86_64-375.66.run

  ERROR: Unable to find the kernel source tree for the currently running kernel.  Please make sure you have installed the kernel source files for your kernel and that they are properly configured; on Red Hat Linux systems, for example, 
         be sure you have the 'kernel-source' or 'kernel-devel' RPM installed.  If you know the correct kernel source files are installed, you may specify the kernel source path with the '--kernel-source-path' command line option.      


#get nvidia opencl
#cuda tools


wget https://developer.nvidia.com/compute/cuda/8.0/Prod2/local_installers/cuda_8.0.61_375.26_linux-run

bash cuda_8.0.61_375.26_linux-run

 Do you accept the previously read EULA?
accept/decline/quit: accept

Install NVIDIA Accelerated Graphics Driver for Linux-x86_64 375.26?
(y)es/(n)o/(q)uit: yes

Do you want to install the OpenGL libraries?
(y)es/(n)o/(q)uit [ default is yes ]: yes

Do you want to run nvidia-xconfig?
This will update the system X configuration file so that the NVIDIA X driver
is used. The pre-existing X configuration file will be backed up.
This option should not be used on systems that require a custom
X configuration, such as systems with multiple GPU vendors.
(y)es/(n)o/(q)uit [ default is no ]: yes

Install the CUDA 8.0 Toolkit?
(y)es/(n)o/(q)uit: yes

Enter Toolkit Location
 [ default is /usr/local/cuda-8.0 ]: yes

Toolkit location must be an absolute path.
Enter Toolkit Location
 [ default is /usr/local/cuda-8.0 ]:

Do you want to install a symbolic link at /usr/local/cuda?
(y)es/(n)o/(q)uit: yes

Install the CUDA 8.0 Samples?
(y)es/(n)o/(q)uit: yes

Enter CUDA Samples Location
 [ default is /root ]: /usr/local/cuda/samples

Installing the NVIDIA display driver...

Installing the CUDA Toolkit in /usr/local/cuda-8.0 ...
Missing recommended library: libGLU.so
Missing recommended library: libXi.so
Missing recommended library: libXmu.so

Installing the CUDA Samples in /usr/local/cuda/samples ...
Copying samples to /usr/local/cuda/samples/NVIDIA_CUDA-8.0_Samples now...
cp: cannot copy a directory, ‘/usr/local/cuda-8.0/bin/../samples/NVIDIA_CUDA-8.0_Samples’, into itself, ‘/usr/local/cuda/samples/NVIDIA_CUDA-8.0_Samples/NVIDIA_CUDA-8.0_Samples’
Finished copying samples.

= Summary =

Driver:   Installed
Toolkit:  Installed in /usr/local/cuda-8.0
Samples:  Installed in /usr/local/cuda/samples, but missing recommended libraries

Please make sure that
 -   PATH includes /usr/local/cuda-8.0/bin
 -   LD_LIBRARY_PATH includes /usr/local/cuda-8.0/lib64, or, add /usr/local/cuda-8.0/lib64 to /etc/ld.so.conf and run ldconfig as root

To uninstall the CUDA Toolkit, run the uninstall script in /usr/local/cuda-8.0/bin
To uninstall the NVIDIA Driver, run nvidia-uninstall

Please see CUDA_Installation_Guide_Linux.pdf in /usr/local/cuda-8.0/doc/pdf for detailed information on setting up CUDA.

Logfile is /tmp/cuda_install_6358.log

#get cudaminer

wget https://github.com/cbuchner1/CudaMiner/archive/master.zip -O cudaminer.zip

unzip cudaminer.zip

cd CudaMiner-master


configure.ac:103: error: possibly undefined macro: AC_MSG_ERROR
      If this token and others are legitimate, please use m4_pattern_allow.
      See the Autoconf documentation.

./configure: line 6211: syntax error near unexpected token `,'
./configure: line 6211: `LIBCURL_CHECK_CONFIG(, 7.15.2, ,'

cd /usr/lib64

ln -s libcurl.so libcurl-gnutls.so
ln -s libcurl.so.4 libcurl-gntuls.so.4

cd /root/CudaMiner




ons=-v -I./compat/jansson -o wrapnvml.o -c wrapnvml.cu
/bin/sh: nvcc: command not found
make[2]: *** [wrapnvml.o] Error 127
make[2]: Leaving directory `/root/CudaMiner-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/CudaMiner-master'
make: *** [all] Error 2

export PATH=$PATH:/usr/local/cuda/bin  make  nvcc -g -O2 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o wrapnvml.o -c wrapnvml.cu
nvcc fatal : Value 'compute_10' is not defined for option 'gpu-architecture'
make[2]: *** [wrapnvml.o] Error 1
make[2]: Leaving directory `/root/CudaMiner-master'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/CudaMiner-master'
make: *** [all] Error 2

sed -i s/arch=compute_10/arch=sm_30/g Makefile





/root/CudaMiner-master/cudaminer: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory

ln -s /usr/local/cuda-8.0/lib64/libcudart.so.8.0 /usr/lib64/


#now it works

Latest Articles

  • AMD Set Fan Speed and Other Powerplay Memory/CPU Timings with a Linux script
  • Ethereum Mining Claymore Nanopool Error
  • genisoimage errors with long filenames and deep directory structures
  • Linux Kernel USB Export Errors
  • How to download gajim 0.16.9 XMPP/Jabber client so you can use OMEMO encryption
  • HP DL385 G7 Linux BIOS Update Flash
  • hwloc-nox set CPU affinity in Linux
  • Firefox An error occurred during a connection to some-ip-or-domain. SSL peer reports incorrect Message Authentication Code. Error code: SSL_ERROR_BAD_MAC_ALERT Solution
  • Proxmox understanding the directory structure and why an NFS datastore appears to be missing files/isos
  • pandoc convert markdown to html
  • Proxmox error uploading an iso solution
  • Cannot install moodle
  • MySQL change for Antelope format to Barracuda error solution
  • vmkping -I vmk1 PING ( 56 data bytes sendto() failed (Host is down)
  • gvfs mount in /run/user cannot be accessed or displayed wrong permissions
  • VMWare vSphere 6.7 Errors Solution 503 Service Unavailable (Failed to connect to endpoint:
  • How To Enable Nested KVM so guests can virtualize with hardware extensions
  • vi error solution E166: Can't open linked file for writing
  • Supermicro IPMI / KVM / BMC Remote Console Screen Resizing Issue - Window Cut Off Solution
  • Linux bash shell doesn't show username, hostname or current path fix solution