在linux中编译我的第一个CUDA程序helloworld时,出现了error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32错误。错误原因是我的LD_LIBRARY_PATH变量设置韦32位的路径,而不是64位的,修改为64位后,程序便正常运行了。
简言之:
在~/.bashrc中将
LD_LIBRARY_PATH=/usr/local/cuda/lib
改为
LD_LIBRARY_PATH=/usr/local/cuda/lib64
分享到:
相关推荐
libssl.so.10缺失库文件的解决办法,error while loading shared libraries :libssl.so.10:cannot open shared object file:No such file or directory
deepstream-app: error while loading shared libraries: libnvinfer.so.7: cannot open shared object file: No such file or directory
MYSQL之 error while loading shared libraries: libtinfo.so.5: cannot open shared objectfile: No such f-附件资源
bedGraphToBigWig: error while loading shared libraries: libssl.so.1.0.0: cannot open shared object file: No such file or directory 就将使用root用户,将这两个文件放到/usr/lib64/ 或则使用: ln -s /usr/...
linux运行zipalign报错“error while loading shared libraries: libc++.so“ 相关文章链接https://blog.csdn.net/u010775335/article/details/124869330
报错内容:sbin/nginx: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory 启动时如果报异常error while loading shared libraries: libpcre.so....
errorloadingos解决方法[文].pdf
error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory [root@SnsWeb ~]# /usr/local/mongodb/bin/mongod --dbpath=/usr/local/mongodb/data --log...
tmux: error while loading shared libraries: libevent-1.4.so.2: cannot open shared object file: No such file or directory 原因一般有两个, 一个是操作系统里确实没有包含该共享库(lib*.so.*文件)或者共享库...
libXp.so.6: cannot open shared object file: No such file or directory [oracle@dbadb1 ~]$ ls -ld /usr/lib/libXp.so.6 ls: /usr/lib/libXp.so.6: No such file or directory [root@dbadb1 zhuxu]# rpm -ivh...
本文实例讲述了安装安装ImageMagick出现error while loading shared libraries的解决方法。分享给大家供大家参考。具体解决方法如下: 运行程序时,如遇到像下列这种错误: ./tests: error while loading shared ...
bin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directoryPlease specify the final destination directory for installed Postfix ...
rpm:error while loading shared libraries: libz.so.1: cannot open shared object file sudo: error in /etc/sudo.conf, line 19 while loading plugin "sudoers_policy" sudo: unable to load /usr/libexec/sudo/...
从 ubuntu16.04 里复制出来的 libpng12.so.0 是64位系统库,使用时需要复制到路径 /usr/lib/x86_64-linux-gnu
error while loading shared libraries: libfreetype.so.6: cannot open shared object file: No such file or directory 缺少的文件libfreetype.so.6
鹰库描述EAGLE图书馆资料库执照麻省理工学院: :