私は 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 ディレクトリを削除して、最初からやり直してください。