Ubuntu 12.04 上的 Cuda 4.2

Ubuntu 12.04 上的 Cuda 4.2

我是 Linux 和 Ubuntu 的新手。我正在尝试在 Ubuntu 12.04 上安装 Cuda 4.2。我按照此处的说明进行操作:https://help.ubuntu.com/community/Cuda

有人能按照这些说明安装 CUDA 吗?我尝试编译 SDK 时遇到错误。这是我得到的:

smaragh@ubuntu69:~/NVIDIA_GPU_Computing_SDK/C$ LINKFLAGS=-L/usr/lib/nvidia-current-updates/ make cuda-install=/opt/cuda
make[1]: Entering directory `/home/smaragh/NVIDIA_GPU_Computing_SDK/C/common'
cc1plus: warning: command line option ‘-Wimplicit’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from src/bank_checker.cpp:15:0:
./../common/inc/bank_checker.h:34:41: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
./../common/inc/bank_checker.h:220:39: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
src/bank_checker.cpp:57:24: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
src/bank_checker.cpp:259:12: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
Assembler messages:
Fatal error: can't create obj/x86_64/release/bank_checker.cpp.o: Permission denied
make[1]: *** [obj/x86_64/release/bank_checker.cpp.o] Error 1
make[1]: Leaving directory `/home/smaragh/NVIDIA_GPU_Computing_SDK/C/common'
make: *** [lib/libcutil.so] Error 2

任何帮助都将不胜感激。谢谢。

答案1

致命错误:无法创建 obj/x86_64/release/bank_checker.cpp.o:权限被拒绝

您是否尝试以 root 身份或使用 运行命令sudo?如果是这种情况,请注意,这样做会创建无法写入的文件夹。尝试删除 cuda 目录并从头开始。

相关内容