unable to run: missing library on CentOS 6

CodeLite installation/troubleshooting forum
scholtes
CodeLite Curious
Posts: 3
Joined: Fri Apr 19, 2013 2:06 am
Genuine User: Yes
IDE Question: C++
Contact:

unable to run: missing library on CentOS 6

Post by scholtes »

My goal is to get a version of CodeLite running on CentOS 6.4.

I built codelitegit and installed it on CentOS 6. (First I had to build and install cmake-2.8.10.2 and wxWidgets-2.9.4).

When I try to run from the command line, I get:
codelite: error while loading shared libraries: libwebkitgtk-1.0.so.0.

I have webkitgtk-1.2.6-2.el6_0.x86_64 installed. The only versions of that library I can find on the web are Ubuntu or OpenSUSE.

I'm a newb. I'd appreciate helpful suggestions.

Thanks.
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: unable to run: missing library on CentOS 6

Post by eranif »

scholtes wrote:codelite: error while loading shared libraries: libwebkitgtk-1.0.so.0.
This is strange, as codelite does not require webkitgtk...

Where did you install the wxWidgets 2.9.4 from? AFAIR, we don't provide wx294 for CentOS, only Fedora/OpenSUSE

I suspect, the problem is somewhere with the wxWidgets-2.9.4 package (which might require webkitgtk for the wxWebView component)
I recommend that you build wx-widgets yourself instead of using the 2.9.4, here is how to build wxWidgets (quite simple actually):

First build wxWidgets:
- Uninstall the wxWidgets 2.9.4 you previously installed
- Download wx294 sources from here
- Extract the package and:

Code: Select all

cd wx-sources/
mkdir build-release
cd build-release
../configure --disable-debug_flag --disable-debug --enable-webkit
make -j8
[become super use]
make install
- Next, you need to build codelite:

Code: Select all

cd codelitegit-sources
mkdir build-release
cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
make clean
make -j8
[become super user]
make install
and it should work

Eran
Make sure you have read the HOW TO POST thread
scholtes
CodeLite Curious
Posts: 3
Joined: Fri Apr 19, 2013 2:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: unable to run: missing library on CentOS 6

Post by scholtes »

Thanks for the reply. I followed your instructions, and have the same problem. Here is the output from ldd:

[mike@localhost bin]$ ldd codelite
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_aui-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_propgrid-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_stc-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_xrc-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_html-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_qa-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_adv-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_gtk2u_core-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_baseu_xml-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_baseu_net-2.9.so.4)
./codelite: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/codelite/libwx_baseu-2.9.so.4)

linux-vdso.so.1 => (0x00007fffbbfff000)
libfreetype.so.6 => /usr/lib64/libfreetype.so.6 (0x0000003a4b000000)
libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x0000003f22000000)
libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x0000003f22c00000)
libgdk_pixbuf-2.0.so.0 => /usr/lib64/libgdk_pixbuf-2.0.so.0 (0x0000003a4c800000)
libgdk-x11-2.0.so.0 => /usr/lib64/libgdk-x11-2.0.so.0 (0x0000003a4f000000)
libgtk-x11-2.0.so.0 => /usr/lib64/libgtk-x11-2.0.so.0 (0x0000003a4d800000)
libcairo.so.2 => /usr/lib64/libcairo.so.2 (0x0000003a4d400000)
libpango-1.0.so.0 => /usr/lib64/libpango-1.0.so.0 (0x0000003f2ac00000)
libatk-1.0.so.0 => /usr/lib64/libatk-1.0.so.0 (0x0000003f29800000)
libwx_gtk2u_aui-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_aui-2.9.so.4 (0x00007fdccc0e8000)
libwx_gtk2u_propgrid-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_propgrid-2.9.so.4 (0x00007fdccbddf000)
libwx_gtk2u_stc-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_stc-2.9.so.4 (0x00007fdccba6b000)
libwx_gtk2u_xrc-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_xrc-2.9.so.4 (0x00007fdccb759000)
libwx_gtk2u_html-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_html-2.9.so.4 (0x00007fdccb465000)
libwx_gtk2u_qa-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_qa-2.9.so.4 (0x00007fdccb217000)
libwx_gtk2u_adv-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_adv-2.9.so.4 (0x00007fdccae1f000)
libwx_gtk2u_core-2.9.so.4 => /usr/lib64/codelite/libwx_gtk2u_core-2.9.so.4 (0x00007fdcca5d7000)
libwx_baseu_xml-2.9.so.4 => /usr/lib64/codelite/libwx_baseu_xml-2.9.so.4 (0x000000339f000000)
libwx_baseu_net-2.9.so.4 => /usr/lib64/codelite/libwx_baseu_net-2.9.so.4 (0x00007fdcca391000)
libwx_baseu-2.9.so.4 => /usr/lib64/codelite/libwx_baseu-2.9.so.4 (0x000000339ea00000)
libclang.so => /usr/lib64/codelite/libclang.so (0x00007fdcc922d000)
libwxsqlite3.so => /usr/lib64/codelite/libwxsqlite3.so (0x00007fdcc8f4b000)
liblibcodelite.so => /usr/lib64/codelite/liblibcodelite.so (0x00007fdcc8b86000)
libplugin.so => /usr/lib64/codelite/libplugin.so (0x00007fdcc8700000)
libdl.so.2 => /lib64/libdl.so.2 (0x0000003f21000000)
libutil.so.1 => /lib64/libutil.so.1 (0x0000003f2d000000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x0000003cf0400000)
libm.so.6 => /lib64/libm.so.6 (0x0000003f21800000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x0000003cee000000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x0000003f21400000)
libc.so.6 => /lib64/libc.so.6 (0x0000003f20c00000)
libgio-2.0.so.0 => /lib64/libgio-2.0.so.0 (0x0000003f24800000)
libgmodule-2.0.so.0 => /lib64/libgmodule-2.0.so.0 (0x0000003f23800000)
libpng12.so.0 => /usr/lib64/libpng12.so.0 (0x0000003a4b400000)
libpangocairo-1.0.so.0 => /usr/lib64/libpangocairo-1.0.so.0 (0x0000003a4f400000)
libfontconfig.so.1 => /usr/lib64/libfontconfig.so.1 (0x0000003a4ac00000)
libXext.so.6 => /usr/lib64/libXext.so.6 (0x0000003a4a800000)
libXrender.so.1 => /usr/lib64/libXrender.so.1 (0x0000003a4c000000)
libXinerama.so.1 => /usr/lib64/libXinerama.so.1 (0x0000003a4c400000)
libXi.so.6 => /usr/lib64/libXi.so.6 (0x0000003a4b800000)
libXrandr.so.2 => /usr/lib64/libXrandr.so.2 (0x0000003a4bc00000)
libXcursor.so.1 => /usr/lib64/libXcursor.so.1 (0x0000003a4ec00000)
libXcomposite.so.1 => /usr/lib64/libXcomposite.so.1 (0x0000003a4d000000)
libXdamage.so.1 => /usr/lib64/libXdamage.so.1 (0x0000003a4e000000)
libXfixes.so.3 => /usr/lib64/libXfixes.so.3 (0x0000003a4cc00000)
libX11.so.6 => /usr/lib64/libX11.so.6 (0x0000003a4a400000)
libpangoft2-1.0.so.0 => /usr/lib64/libpangoft2-1.0.so.0 (0x0000003a4e800000)
libpixman-1.so.0 => /usr/lib64/libpixman-1.so.0 (0x0000003a4e400000)
libz.so.1 => /lib64/libz.so.1 (0x0000003a49800000)
libgthread-2.0.so.0 => /lib64/libgthread-2.0.so.0 (0x0000003f24400000)
librt.so.1 => /lib64/librt.so.1 (0x0000003f21c00000)
libXxf86vm.so.1 => /usr/lib64/libXxf86vm.so.1 (0x0000003a4fc00000)
libwebkitgtk-1.0.so.0 => not found
libsoup-2.4.so.1 => /usr/lib64/libsoup-2.4.so.1 (0x00000031bd000000)
/lib64/ld-linux-x86-64.so.2 (0x0000003f20800000)
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found
libwebkitgtk-1.0.so.0 => not found
libjavascriptcoregtk-1.0.so.0 => not found

libresolv.so.2 => /lib64/libresolv.so.2 (0x0000003f23400000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x0000003f22800000)
libexpat.so.1 => /lib64/libexpat.so.1 (0x0000003f25c00000)
libxcb.so.1 => /usr/lib64/libxcb.so.1 (0x0000003a49c00000)
libxml2.so.2 => /usr/lib64/libxml2.so.2 (0x00000031bb800000)
libgnutls.so.26 => /usr/lib64/libgnutls.so.26 (0x00000031bc000000)
libgcrypt.so.11 => /lib64/libgcrypt.so.11 (0x0000003f34400000)
libXau.so.6 => /usr/lib64/libXau.so.6 (0x0000003a4a000000)
libtasn1.so.3 => /usr/lib64/libtasn1.so.3 (0x0000003f36000000)
libgpg-error.so.0 => /lib64/libgpg-error.so.0 (0x0000003f31400000)
User avatar
eranif
CodeLite Plugin
Posts: 6375
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: unable to run: missing library on CentOS 6

Post by eranif »

It looks like you are still using the old binaries
This definitely does not look like something you built yourself... otherwise it would have failed in the link stage

Eran
Make sure you have read the HOW TO POST thread
scholtes
CodeLite Curious
Posts: 3
Joined: Fri Apr 19, 2013 2:06 am
Genuine User: Yes
IDE Question: C++
Contact:

Re: unable to run: missing library on CentOS 6

Post by scholtes »

I got it working.

I had to manually delete all of the files in /usr/lib64/codelite and /usr/share/codelite to get rid of the old binaries.

Thanks for your help!
Post Reply