CudaMiner-由于 nvcc 和第二个错误导致编译失败。:D

CudaMiner-由于 nvcc 和第二个错误导致编译失败。:D
sarcastic@twitpc:~/CudaM$ make
make  all-recursive
make[1]: Entering directory `/home/sarcastic/CudaM'
Making all in compat
make[2]: Entering directory `/home/sarcastic/CudaM/compat'
Making all in jansson
make[3]: Entering directory `/home/sarcastic/CudaM/compat/jansson'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home/sarcastic/CudaM/compat/jansson'
make[3]: Entering directory `/home/sarcastic/CudaM/compat'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home/sarcastic/CudaM/compat'
make[2]: Leaving directory `/home/sarcastic/CudaM/compat'
make[2]: Entering directory `/home/sarcastic/CudaM'
nvcc -g -O2 -Xptxas "-abi=no -v" -arch=compute_10 --maxrregcount=64 --ptxas-options=-v -I./compat/jansson -o salsa_kernel.o -c salsa_kernel.cu
/bin/bash: nvcc: command not found
make[2]: *** [salsa_kernel.o] Error 127
make[2]: Leaving directory `/home/sarcastic/CudaM'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/sarcastic/CudaM'
make: *** [all] Error 2
sarcastic@twitpc:~/CudaM$ 

我是新手,请帮忙!:D

答案1

只需在终端中输入此命令。您将看到:

$ nvcc
The program 'nvcc' is currently not installed. You can install it by typing:
sudo apt-get install nvidia-cuda-toolkit
You will have to enable the component called 'multiverse'

这意味着您必须安装nvidia-cuda-toolkit

另一种方法是搜索apt-cache

$ sudo apt-cache search nvcc
[sudo] password for karimov-danil: 
nvidia-cuda-toolkit - NVIDIA CUDA toolkit

输出中的第一列是包的名称,第二列是描述。

相关内容