Error while trying to start kibana: wrong ELF class: ELFCLASS32


im testing an upgrade to ES 2.1 and kibana to 4.3.1 and when i try to start kibana i get the following error:
./../node/bin/node: error while loading shared libraries: wrong ELF class: ELFCLASS32

any idea what might cause it?


What OS are you on?

And what package did you download?


im running on Scientific Linux release 6.4 (Carbon) (64Bit) and downloaded kibana-4.3.1-linux-x64.tar.
i know what the problem is:
[root@XXX bin]# ldd node => (0x00007fff17ff8000) => /lib64/ (0x00007f7cb3f47000) => /lib64/ (0x00007f7cb3d43000) => not found => /lib64/ (0x00007f7cb3abe000) => /lib64/ (0x00007f7cb38a8000) => /lib64/ (0x00007f7cb368a000) => /lib64/ (0x00007f7cb32f6000)
/lib64/ (0x00007f7cb4159000) => not found, trying to find  a solution for that. the files exists:

lrwxrwxrwx. 1 root root 19 Jan 8 2015 /usr/lib64/ ->
-rwxr-xr-x. 1 root root 930192 Mar 23 2015 /usr/lib64/

but for some reason it doesnt see it in its rpath.

any linux-savvy people could help out here?


Can you try this:

ldconfig -p | grep libstdc

Do you see: (libc6,x86-64) => /lib64/ (libc6) => /lib/

If not try running ldconfig -v and see if that fixes it. If not try doing:

export LD_LIBRARY_PATH=/usr/lib64

Then start kibana.


thanks for the reply, that would probably helped me to find the problem faster.

the problem was, that for some reason, the lib file that was in the 64 bit folder was 32 bit:
file /usr/lib64/
/usr/lib64/ ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped

i copied a 64 bit lib file from a different node and it worked:
ldd /var/opt/kibana/node/bin/node => (0x00007fffb73ff000) => /lib64/ (0x00007feac9923000) => /lib64/ (0x00007feac971f000) => /usr/lib64/ (0x00007feac9418000) => /lib64/ (0x00007feac9194000) => /lib64/ (0x00007feac8f7e000) => /lib64/ (0x00007feac8d60000) => /lib64/ (0x00007feac89cc000)
/lib64/ (0x00007feac9b35000)

how did you copied a 64 bit lib file from a different node plz answer