Error while loading shared libraries: libcudart.so.2: wrong ELF class: ELFCLASS32 Error executing
Ok, i managed to "install" all the CUDA 2.3 components after a few compilation errors "ld cannot find -L(stuff)", now it seems like the compilation was succesfull but when i try to run one of the examples this new error occurs: "error while loading shared libraries: libcudart.so.2: wrong ELF class: ELFCLASS32".
I have no idea on whats going on =(
Ok, i managed to "install" all the CUDA 2.3 components after a few compilation errors "ld cannot find -L(stuff)", now it seems like the compilation was succesfull but when i try to run one of the examples this new error occurs: "error while loading shared libraries: libcudart.so.2: wrong ELF class: ELFCLASS32".

I have no idea on whats going on =(

#1
Posted 07/27/2009 02:10 AM   
I am having the same problem. I assume that the examples somehow compiled for 32 bit linux, and this somehow makes them unusable on my 64 bit system.
I am having the same problem. I assume that the examples somehow compiled for 32 bit linux, and this somehow makes them unusable on my 64 bit system.

#2
Posted 07/27/2009 01:01 PM   
LD_LIBRARY_PATH or /etc/ld.so.conf should contain both the cuda/lib and cuda/lib64 directories.
LD_LIBRARY_PATH or /etc/ld.so.conf should contain both the cuda/lib and cuda/lib64 directories.

#3
Posted 07/27/2009 03:22 PM   
Apparantly its in the release notes

set
LD_LIBRARY_PATH

to
/usr/local/cuda/lib64

not
/usr/local/cuda/lib

if you are on a 64 bit platform.
Apparantly its in the release notes



set

LD_LIBRARY_PATH



to

/usr/local/cuda/lib64



not

/usr/local/cuda/lib



if you are on a 64 bit platform.

#4
Posted 07/27/2009 05:58 PM   
you can use both if you want to use cross-compilation.
you can use both if you want to use cross-compilation.

#5
Posted 07/27/2009 08:54 PM   
I solve it by update the /lib to /lib64

[quote name='Aschemel' post='570341' date='Jul 26 2009, 09:10 PM']Ok, i managed to "install" all the CUDA 2.3 components after a few compilation errors "ld cannot find -L(stuff)", now it seems like the compilation was succesfull but when i try to run one of the examples this new error occurs: "error while loading shared libraries: libcudart.so.2: wrong ELF class: ELFCLASS32".
I have no idea on whats going on =([/quote]
I solve it by update the /lib to /lib64



[quote name='Aschemel' post='570341' date='Jul 26 2009, 09:10 PM']Ok, i managed to "install" all the CUDA 2.3 components after a few compilation errors "ld cannot find -L(stuff)", now it seems like the compilation was succesfull but when i try to run one of the examples this new error occurs: "error while loading shared libraries: libcudart.so.2: wrong ELF class: ELFCLASS32".

I have no idea on whats going on =(

#6
Posted 07/27/2009 09:38 PM   
Thanks for the replies. I had the same problem and i hope its going to work fine now. :)
Thanks for the replies. I had the same problem and i hope its going to work fine now. :)

Logic prevails...

#7
Posted 08/27/2009 04:12 PM   
Thanks a lot, I had the same problem.
Thanks a lot, I had the same problem.

#8
Posted 10/17/2009 12:58 AM   
Scroll To Top