无法访问$ LD_LIBRARY_PATH

时间:2016-04-25 12:09:35

标签: bash path

没有重新导出$ LD_LIBRARY_PATH,也没有对bashrc中的变量做任何事情,

echo $LD_LIBRARY_PATH

返回

/usr/local/cuda/lib64

然而,

$LD_LIBRARY_PATH

返回

-bash: /usr/local/cuda/lib64:: No such file or dictionary

然而,这条道路确实存在。

可能出了什么问题?

------ ----- EDIT

ls -ld /usr/local{,/cuda{,/*}}

返回

drwxr-xr-x 16 root root 4096 Apr 10 17:07 /usr/local
lrwxrwxrwx  1 root root   19 Sep 16  2015 /usr/local/cuda -> /usr/local/cuda-7.5
drwxr-xr-x  3 root root 4096 Sep 16  2015 /usr/local/cuda/bin
drwxr-xr-x  5 root root 4096 Sep 16  2015 /usr/local/cuda/doc
drwxr-xr-x  4 root root 4096 Sep 16  2015 /usr/local/cuda/extras
drwxr-xr-x  5 root root 4096 Sep 16  2015 /usr/local/cuda/include
drwxr-xr-x  5 root root 4096 Sep 16  2015 /usr/local/cuda/jre
drwxr-xr-x  2 root root 4096 Sep 16  2015 /usr/local/cuda/lib
drwxr-xr-x  3 root root 4096 Sep 16  2015 /usr/local/cuda/lib64
drwxr-xr-x  8 root root 4096 Sep 16  2015 /usr/local/cuda/libnsight
drwxr-xr-x  7 root root 4096 Sep 16  2015 /usr/local/cuda/libnvvp
drwxr-xr-x  7 root root 4096 Sep 16  2015 /usr/local/cuda/nvvm
drwxr-xr-x  2 root root 4096 Sep 16  2015 /usr/local/cuda/pkgconfig
drwxr-xr-x 11 root root 4096 Sep 16  2015 /usr/local/cuda/samples
drwxr-xr-x  3 root root 4096 Sep 16  2015 /usr/local/cuda/share
drwxr-xr-x  2 root root 4096 Sep 16  2015 /usr/local/cuda/src
drwxr-xr-x  2 root root 4096 Sep 16  2015 /usr/local/cuda/tools
-rw-r--r--  1 root root   20 Sep 16  2015 /usr/local/cuda/version.txt

1 个答案:

答案 0 :(得分:0)

通过修改Makefile.config解决了问题,如下所示:

/usr/local/cuda 

/usr/local/cuda-7.5