sudo apt-get install libxi-dev libxmu-dev libglut3-dev
使用apt接口安装CUDA SDK
报错失败:E: Unable to locate package libglut3-dev
sudo apt update
更新apt接口
apt search libglut
寻找失败包
sudo apt-get install libxi-dev libxmu-dev libglut3-dev
重新尝试并依旧失败
sudo find / -name nvcc
查找nvcc确认是否已经安装过CUDA
echo $CUDA_INSTALL_PATH
寻找CUDA路径
export CUDA_INSTALL_PATH=/usr/local/cuda
添加CUDA路径
export PATH=$CUDA_INSTALL_PATH/bin:$PATH
添加path路径
source ~/.bashrc
储存更改
echo $PATH
检查路径