3

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
David Foerster
  • 36,264
  • 56
  • 94
  • 147
perondi
  • 33
  • 1
  • 1
  • 4

1 Answers1

8

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.

dobey
  • 40,982