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

  • LXC Containers LXD How to Install and Configure Tutorial Ubuntu Debian Mint
  • GlusterFS HowTo Tutorial For Distributed Storage in Docker, Kubernetes, LXC, KVM, Proxmox
  • Ubuntu Mint audio output not working pulseaudio "pulseaudio[13710]: [pulseaudio] sink-input.c: Failed to create sink input: too many inputs per sink."
  • How To Shrink Dynamically Allocated VM QEMU KVM VMware Disk Image File
  • How To Enable Linux Swapfile Instead of Partition Ubuntu Mint Debian Centos
  • 404 Not Found [IP: 80] apt update Debian 11 Bullseye Solution The repository 'http://security.debian.org bullseye/updates Release' does not have a Release file.
  • WARNING: Can't download daily.cvd from db.local.clamav.net freshclam clamav error solution
  • (firefox:9562): LIBDBUSMENU-GLIB-WARNING **: Unable to get session bus: Failed to execute child process "dbus-launch" (No such file or directory) Solution
  • Debian Mint Ubuntu Which Package Provides missing top, ps and w Solution
  • Vbox Virtualbox DNS NAT Network Mode NOT working
  • Docker Tutorial HowTo Install Docker, Use and Create Docker Container Images Clustering Swarm Mode Monitoring Service Hosting Provider
  • Zoom Password Error 'That passcode was incorrect' - Solution Wrong Passcode Wrong Meeting Name
  • How To Startup and Open Remote/Local Folder/Directory in Ubuntu Linux Mint automatically upon login
  • How To Reset Windows Server Password 2019, 2022, 7, 8, 10, 11 Recovery and Removal Guide Using Linux Ubuntu Mint Debian
  • How To Create OpenVPN Server for Secure Remote Corporate Access in Linux Debian/Mint/Ubuntu with client public key authentication
  • HongKong VPS Server, Cloud, Dedicated Server, Co-Location, Datacenter The Best Guide on Hong Kong, China Internet IT/Computing
  • ssh-keygen id_rsa private key howto remove the passphrase so no password is required and no encryption is used
  • Package wget is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source. E: Package 'wget' has no installation candidate. Solution
  • tag#4 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE tag#4 Sense Key : Illegal Request [current] res 40/00:b4:98:02:00/00:00:00:00:00/40 Emask 0x10 (ATA bus error) solution
  • Wazuh Install and Configuration Howto Tutorial Guide for Monitoring Agents