# Error while trying to start kibana: libstdc++.so.6: wrong ELF class: ELFCLASS32

**URL:** <https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274>\
**Category:** Kibana\
**Created:** [January 3, 2016, 1:55pm UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274 "2016-01-03T13:55:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreynikk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andreynikk/32/6873_2.png) [@andreynikk](https://discuss.elastic.co/u/andreynikk)\
**Post date:** [January 3, 2016, 1:55pm UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/1 "2016-01-03T13:55:37Z")

</div>

Hi,

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:  
./kibana  
./../node/bin/node: error while loading shared libraries: libstdc++.so.6: wrong ELF class: ELFCLASS32

any idea what might cause it?

Thanks.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [January 3, 2016, 9:08pm UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/2 "2016-01-03T21:08:10Z")

</div>

What OS are you on?

And what package did you download?

---

<div class="post-metadata">

**Author:** ![andreynikk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andreynikk/32/6873_2.png) [@andreynikk](https://discuss.elastic.co/u/andreynikk)\
**Post date:** [January 4, 2016, 9:09am UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/3 "2016-01-04T09:09:33Z")

</div>

Hi,

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  
linux-vdso.so.1 =\> (0x00007fff17ff8000)  
librt.so.1 =\> /lib64/librt.so.1 (0x00007f7cb3f47000)  
libdl.so.2 =\> /lib64/libdl.so.2 (0x00007f7cb3d43000)  
libstdc++.so.6 =\> not found  
libm.so.6 =\> /lib64/libm.so.6 (0x00007f7cb3abe000)  
libgcc\_s.so.1 =\> /lib64/libgcc\_s.so.1 (0x00007f7cb38a8000)  
libpthread.so.0 =\> /lib64/libpthread.so.0 (0x00007f7cb368a000)  
libc.so.6 =\> /lib64/libc.so.6 (0x00007f7cb32f6000)  
/lib64/ld-linux-x86-64.so.2 (0x00007f7cb4159000)

```
    libstdc++.so.6 => not found, trying to find a solution for that. the files exists:

```

lrwxrwxrwx. 1 root root 19 Jan 8 2015 /usr/lib64/libstdc++.so.6 -\> libstdc++.so.6.0.13  
-rwxr-xr-x. 1 root root 930192 Mar 23 2015 /usr/lib64/libstdc++.so.6.0.13

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

any linux-savvy people could help out here?

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [January 4, 2016, 11:37pm UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/4 "2016-01-04T23:37:39Z")

</div>

Hi,

Can you try this:

```auto
ldconfig -p | grep libstdc

```

Do you see:

```auto
        libstdc++.so.6 (libc6,x86-64) => /lib64/libstdc++.so.6
        libstdc++.so.6 (libc6) => /lib/libstdc++.so.6

```

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

```auto
export LD_LIBRARY_PATH=/usr/lib64

```

Then start kibana.

---

<div class="post-metadata">

**Author:** ![andreynikk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/andreynikk/32/6873_2.png) [@andreynikk](https://discuss.elastic.co/u/andreynikk)\
**Post date:** [January 5, 2016, 9:28am UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/5 "2016-01-05T09:28:58Z")

</div>

Hi,

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/libstdc++.so.6  
/usr/lib64/libstdc++.so.6: 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  
linux-vdso.so.1 =\> (0x00007fffb73ff000)  
librt.so.1 =\> /lib64/librt.so.1 (0x00007feac9923000)  
libdl.so.2 =\> /lib64/libdl.so.2 (0x00007feac971f000)  
libstdc++.so.6 =\> /usr/lib64/libstdc++.so.6 (0x00007feac9418000)  
libm.so.6 =\> /lib64/libm.so.6 (0x00007feac9194000)  
libgcc\_s.so.1 =\> /lib64/libgcc\_s.so.1 (0x00007feac8f7e000)  
libpthread.so.0 =\> /lib64/libpthread.so.0 (0x00007feac8d60000)  
libc.so.6 =\> /lib64/libc.so.6 (0x00007feac89cc000)  
/lib64/ld-linux-x86-64.so.2 (0x00007feac9b35000)

---

<div class="post-metadata">

**Author:** ![Oussama\_Slassi](https://avatars.discourse-cdn.com/v4/letter/o/e79b87/32.png) [@Oussama\_Slassi](https://discuss.elastic.co/u/Oussama_Slassi)\
**Post date:** [January 23, 2017, 2:02pm UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/6 "2017-01-23T14:02:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:33pm UTC](https://discuss.elastic.co/t/error-while-trying-to-start-kibana-libstdc-so-6-wrong-elf-class-elfclass32/38274/7 "2017-07-06T13:33:20Z")

</div>


