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


centos, cudaminer, nvidia, gtx, download, http, www, index, aspx, lang, en, yum, install, automake, curl, openssl, devel, libcurl, gcc, kernel, uname, unzip, installs, newer, matching, wget, xfree, linux, _, bash, unable, currently, installed, configured, rpm, specify, ok, opencl, cuda, https, developer, downloads, compute, prod, local_installers, cuda_, _linux, previously, eula, decline, accelerated, graphics, es, uit, opengl, libraries, default, xconfig, update, configuration, existing, custom, multiple, gpu, vendors, toolkit, usr, symbolic, installing, display, recommended, libglu, libxi, libxmu, copying, nvidia_cuda, _samples, cp, directory, lsquo, bin, rsquo, summary, includes, ld_library_path, lib, etc, ld, conf, ldconfig, uninstall, cuda_installation_guide_linux, pdf, detailed, logfile, tmp, cuda_install_, github, cbuchner, wiki, howto, compile, archive, zip, autogen, sh, configure, ac, undefined, macro, ac_msg_error, token, legitimate, _pattern_allow, autoconf, documentation, syntax, libcurl_check_config, ln, gnutls, gntuls, ons, compat, jansson, wrapnvml, cu, nvcc, recursive, export, xptxas, quot, abi, compute_, maxrregcount, ptxas, cunvcc, fatal, defined, architecture, sed, sm_, makefile, loading, libcudart,

Latest Articles

  • Mikrotik RouterOS CHR/ISO Basic and Quick Setup Howto Guide
  • qemu 4 compilation options
  • CentOS 7 8 PXEBoot Netinstall Not Working Solution "Pane is dead "new value non-exisetnt xfs filesystem is not valid as a default fs type"
  • CentOS 6 EOL yum repo won't work Error: Cannot find a valid baseurl for repo: base Solution
  • CentOS 7 8 How To Disable SELinux
  • Wordpress How To Add Featured Image To Post in Hueman Theme
  • kdenlive full reset how to erase all config files
  • CentOS 7 8 yum error Trying other mirror. To address this issue please refer to the below wiki article
  • Microsoft Teams Linux - Calendar Doesn't Work Missed Meetings!
  • Scanner not working in Linux Ubuntu Fedora Mint Debian over the network? Use sane-airscan!
  • How To Boot, Install and Run Windows 2000 on QEMU-KVM
  • bash cannot execute permission denied
  • Huion and Wacom Tablets How To Install in Linux Mint / Ubuntu and make the stylus work properly
  • ffmpeg how to cut certain parts of video out
  • ffmpeg how to concat and join two video clips
  • mencoder instead of ffmpeg to join or concatenate video files with different audio streams
  • Linux How To Stop Missing Drive from Halting Boot Process in fstab
  • How To Replace Audio Track of Video using ffmpeg
  • qemu-img convert formats vdi vmdk raw qcow2
  • Linux and Windows Dual Boot Crazy Time Issues