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

  • Unable to mount location Failed to retrieve share list from server: Connection timed out - Samba/Linux Filesharing Not working Ubuntu Mint Linux Solution
  • How To Resize, Reduce a Video to a Specific Size and Quality Ubuntu Linux using ffmpeg
  • vi how to delete all lines in the file
  • Linux Mint / Ubuntu 20 Intel I219 NIC disconnects
  • Linux can't boot/grub boot loader screen with no options solution
  • EFI PXE grub2 Howto guide for Linux EFI PXE Booting on Debian, Mint, Ubuntu, RHEL
  • Aruba/HP/Dell IAP Wireless Controller Common Default Passwords
  • Debian, Mint Ubuntu how to remove package and associated config files
  • Linux Grub not booting the intended kernel solution in Debian, Mint, Ubuntu how to specify which kernel to boot by default
  • QEMU KVM Keyboard Problems Not Working Right Repeating Characters, Ctrl+C Copy and Paste not working right when using PS2 mouse in guests Solution
  • Linux how to compile binary with static sharedobjects embedded instead of dynamic to use on multi-distributions and avoid glibc compatiblity issues
  • /bin/sh: msgfmt: not found error solution on Linux Compilation Ubuntu Debian Mint Centos
  • 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