无法加载共享对象错误的 ELF 类:ELFCLASS32

per*_*ndi 3 shared-library r 12.04

我有一个 x86_64 的 linux 服务器。

我正在编译需要加载 bibliblioteca 的 R 代码。当我运行此代码时,它显示以下错误:

Error in dyn.load ("functions.so"):
Unable to load shared object 'functions.so':
functions.so': wrong ELF class: ELFCLASS32
Run Code Online (Sandbox Code Playgroud)

dob*_*bey 8

我不确定你functions.so从哪里得到的,但问题是它是一个 32 位库,而你正试图将它加载到 64 位进程中。您需要 64 位版本的库,或者大概是 32 位版本的R.