1. 程式人生 > >error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解決

error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32 的解決

在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

相關推薦

error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32解決

在linux中編譯我的第一個CUDA程式helloworld時,出現了error while loading shared libraries: libcudart.so.3: wrong ELF class: ELFCLASS32錯誤。 錯誤原因是我的LD_LIBRARY

Ubuntu安裝Caffe .build_release/tools/caffe: error while loading shared libraries: libcudart.so.8.0

Ubuntu 安裝caffe GPU版本的時候遇到 .build_release/tools/caffe: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No s

centos: error while loading shared libraries: libcudart.so.8.0

問題:./XXXXXXX: error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: No such file or directory 解決方法: sud

.build_release/tools/caffe: error while loading shared libraries: libcudart.so.9.0: cannot open shar

[email protected]:~/caffe$ sudo make runtest -j8 .build_release/tools/caffe .build_release/tools/caffe: error while loading shared libraries: lib

error while loading shared libraries: libcudart.so.8.0: cannot open shared object file: can not open

裝好caffe後,第一件事就是先跑跑自帶的mnist例子看看能不能跑通。 問題: 結果發現如下問題,問題比較多,但都是一個性質的,解決一個其他都一樣: ./build/tools/caffe: error while loading shared libraries

caffe出現error while loading shared libraries: libopencv_core.so.3.1: cannot open shared object file:

error while loading shared libraries: libopencv_core.so.3.1: cannot open shared object file: No such file or directory 這個錯誤主要的原因是在

error while loading shared libraries: libcudart.so.7.5: cannot open shared ......解決方法

兩種方法: 第一種: 當libcudart.so.7.5存在,但是還是報錯的情況下,需要設定一下連結,按照下面的方法設定即可: 在 /etc/ld.so.conf.d/加入檔案 cuda.conf, 內容如下 /usr/local/cuda-6.5/lib64  

error while loading shared libraries: xxx.so.x" 錯誤的原因和解決辦法

今天在執行一個protobuf程式時,提示error while loading shared libraries: libprotobuf.so.8: cannot open shared object file: No such file or directory錯誤。google了一下,是由於找不到li

arm-none-linux-gnueabi/4.4.3/cc1: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory

鬱悶了,安裝好了arm-linux-gcc的4.4.3版本,就是能能執行!!! 而且,在執行arm-linux-gcc -v的時候一切正常,醉了! 顯示說: /opt/Friendlyarm/arm-linux-gcc-4.4.3/bin/../libexec/gcc/arm-none-linux-

關於 error while loading shared libraries: libXXX.so.1.2.3

最近才調C++呼叫jar包  編譯時出現了找不到 libjvm.so庫的資訊   轉一遍解決此問題的文章 此時你可以locate libXXX.so.1.2.3 (如果你的檔案系統比以前有了變化,如安裝了可能是需要的庫的開發包,則需要 locate -u 一下) 然後

java 罕見的依賴報錯 jstat: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory

玩意兒 rpm 文件 .com pen jdk1 obj not found linu java 都用了N長時間了,突然,意外地發現有一個依賴的so文件從來沒找見過 # ldd /usr/bin/java linux-vdso.so.1 => (0x00007ff

error while loading shared libraries: libssl.so.6: cannot open shared object file

ldd yum check_tcp libssl.so.6 openssl098e-0.9.8e-20 [root@ ~]# /usr/local/nagios/libexec/check_tcp -H 127.0.0.1 80/usr/local/nagios/libexec/check

error while loading shared libraries: xxx.so.x"錯誤的原因和解決辦法

exp 不想 ech cache 方案 動態鏈接庫 direct 就會 export 一般我們在Linux下執行某些外部程序的時候可能會提示找不到共享庫的錯誤, 比如: tmux: error while loading shared libraries: libe

Nginx啟動錯誤:error while loading shared libraries: libpcre.so.1

bsp crypto UC shared include libc.so.6 aries while 進一步 # /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx: error while loading sh

Nginx啟動錯誤:error while loading shared libraries: libpcre.so.0

sbin 共享 shared 啟動 direct error oca lib while 今天測試的時候,啟動一個其他機器預編譯好的nginx到目標測試機器(OEL 7.4)啟動的時候,報了下列錯誤: /usr/local/nginx/sbin/nginx: error w

解決軟件啟動報error while loading shared libraries: libgd.so.2: cannot open shared object錯誤

data dso htm inux libpcre 通過 libc.so.6 code 相關 解決軟件啟動報error while loading shared libraries: libgd.so.2: cannot open shared object錯誤 今天安

error while loading shared libraries: libpcre.so.0的解決辦法

操作系統 找到 entos mirror centos ror blank 解決方法 cto 因沒有備份libpcre.so.0文件便執行命令“rpm -e pcre –nodeps”,導致丟失libpcre.so.0文件。結果可想而知,

解決error while loading shared libraries: libXXX.so.X: cannot open shared object file: No such file

一、問題 執行hello程式時,用到了自己編寫的動態庫,在目錄/usr/local/lib目錄下,執行時出現 error while loading shared libraries: libhello.so.1: cannot open shared object file: No s

解決OpenSSL:error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No

解決OpenSSL:error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No

執行Visual Studio code,遇到error while loading shared libraries: libXss.so.1: cannot open shared object

執行Visual Studio Code,遇到錯誤如下: [[email protected] VSCode-linux-x64]# ./code  ./code: error while loading shared libraries: libXss.so.1