When I type in sudo ldconfig, the system show me such error:
/sbin/ldconfig.real: /usr/local/lib/libcudart.so.6.5 is not a symbolic link
/sbin/ldconfig.real: /usr/local/lib/libcudnn.so.6.5 is not a symbolic link
my solution for this: rename the /usr/local/lib/libcudart.so.6.5 to /usr/local/lib/libcudart.so.6.5.copy, /usr/local/lib/libcudart.so.6.5 to /usr/local/lib/libcudart.so.6.5.copy.
This because the symbolic link of the above two libs has been defined in the /usr/local/cuda-6.5/lib64, so there a duplication occurs in /user/local/lib