/usr/bin/ld: 找不到 -lcudnn(/Usr / bin / LD: – lcudnn not found)

命令行进入 /usr/local/cuda-10.0/lib64 路径下,运行以下命令:

sudo cp lib* /usr/local/cuda/lib64/ cd /usr/local/cuda/lib64/

sudo rm -rf libcudnn.so libcudnn.so.7sudo ln -s libcudnn.so.7.4.2 libcudnn.so.7sudo ln -s libcudnn.so.7 libcudnn.so

————————

From the command line, enter / usr / local / cuda-10.0/lib64 and run the following command:

sudo cp lib* /usr/local/cuda/lib64/ cd /usr/local/cuda/lib64/

sudo rm -rf libcudnn.so libcudnn.so.7sudo ln -s libcudnn.so.7.4.2 libcudnn.so.7sudo ln -s libcudnn.so.7 libcudnn.so