Unable to Load Shared Object Wrong Elf Class: Elfclass32

Unable to Load Shared Object Wrong Elf Class: Elfclass32

I have a linux server with x86_64.

I'm compiling an R code that needs to load a bibliblioteca. When I run this code it displays the following error has:

Error in dyn.load ("functions.so"):
Unable to load shared object 'functions.so':
functions.so': wrong ELF class: ELFCLASS32
1

1 Answer

I'm not sure where you got functions.so from, but the problem is that it is a 32-bit library, and you are trying to load it into a 64-bit process. You need a 64-bit version of the library, or presumably the 32-bit version of R.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi
Author

Maya Lin-Takahashi

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.