View previous topic :: View next topic |
Author |
Message |
nes Apprentice
Joined: 10 Aug 2004 Posts: 155 Location: Vienna/Austria
|
Posted: Fri Sep 03, 2004 5:01 am Post subject: [solved] shared object file not found |
|
|
Warum findet er bei eclipse die libgtk nicht, liegt doch eh im richtigen ordner, alles andere geht ja auch? Konkret:
Code: |
bash-2.05b$ ./eclipse
./eclipse: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
bash-2.05b$
bash-2.05b$ ls -la /usr/lib/libgtk-x11-2.0.so.0
lrwxrwxrwx 1 root root 25 29. Aug 11:00 /usr/lib/libgtk-x11-2.0.so.0 -> libgtk-x11-2.0.so.0.400.4
bash-2.05b$ ls -la /usr/lib/libgtk-x11-2.0.so.0.400.4
-rwxr-xr-x 1 root root 3076608 29. Aug 11:00 /usr/lib/libgtk-x11-2.0.so.0.400.4
bash-2.05b$
|
lg., nes
Last edited by nes on Sun Sep 05, 2004 6:13 am; edited 1 time in total |
|
Back to top |
|
|
dgently Apprentice
Joined: 29 Jul 2004 Posts: 160
|
Posted: Fri Sep 03, 2004 5:51 am Post subject: |
|
|
Was sagt denn "ldd eclipse" und "ldconfig -p | grep libgtk-x11"? |
|
Back to top |
|
|
nes Apprentice
Joined: 10 Aug 2004 Posts: 155 Location: Vienna/Austria
|
Posted: Fri Sep 03, 2004 3:47 pm Post subject: |
|
|
Code: |
bash-2.05b$ ldd eclipse
linux-gate.so.1 => (0xffffe000)
libgtk-x11-2.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libc.so.6 => /lib32/libc.so.6 (0x5557e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
libgdk-x11-2.0.so.0 => not found
libgobject-2.0.so.0 => not found
bash-2.05b$
bash-2.05b$ /sbin/ldconfig -p | grep libgtk-x11
libgtk-x11-2.0.so.0 (libc6,x86-64) => /usr/lib/libgtk-x11-2.0.so.0
libgtk-x11-2.0.so (libc6,x86-64) => /usr/lib/libgtk-x11-2.0.so
bash-2.05b$
|
lg., nes |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Sep 03, 2004 3:50 pm Post subject: |
|
|
revdep-rebuild -p _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
|
nes Apprentice
Joined: 10 Aug 2004 Posts: 155 Location: Vienna/Austria
|
Posted: Fri Sep 03, 2004 3:57 pm Post subject: |
|
|
Gerade getan, am Fehler hat sich aber leider nichts geändert:
Code: |
gamma root # revdep-rebuild -p
Checking reverse dependencies...
Packages containing binaries and libraries broken by any package update,
will be recompiled.
Collecting system binaries and libraries... done.
(/root/.revdep-rebuild.1_files)
Collecting complete LD_LIBRARY_PATH... done.
(/root/.revdep-rebuild.2_ldpath)
Checking dynamic linking consistency...
done.
(/root/.revdep-rebuild.3_rebuild)
Assigning files to ebuilds... Nothing to rebuild
Evaluating package order... done.
(/root/.revdep-rebuild.5_order)
Dynamic linking on your system is consistent... All done.
gamma root #
|
Wie gesagt, beim Aufruf von eclipse gleicher Fehler wie zuvor: Er findet die libgtk nicht.
lg., nes |
|
Back to top |
|
|
Beforegod Bodhisattva
Joined: 10 Apr 2002 Posts: 1495 Location: Würzburg
|
Posted: Fri Sep 03, 2004 5:11 pm Post subject: |
|
|
Bleibt Dir nichts anderes übrig als eclipse neu zu emergen. |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Sep 03, 2004 6:43 pm Post subject: |
|
|
Die gesuchten Bibliotheken sind von x11-libs/gtk+, also würde ich mich darüber her machen. Aber schon verwunderlich, daß revdep-rebuild da nichts liefert. Wie stehts mit qpkg -l gtk+-2 | grep lib/lib? _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
|
dgently Apprentice
Joined: 29 Jul 2004 Posts: 160
|
Posted: Fri Sep 03, 2004 7:38 pm Post subject: |
|
|
nes wrote: | Code: |
bash-2.05b$ ldd eclipse
linux-gate.so.1 => (0xffffe000)
libgtk-x11-2.0.so.0 => not found
libgdk_pixbuf-2.0.so.0 => not found
libc.so.6 => /lib32/libc.so.6 (0x5557e000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x55555000)
libgdk-x11-2.0.so.0 => not found
libgobject-2.0.so.0 => not found
bash-2.05b$
bash-2.05b$ /sbin/ldconfig -p | grep libgtk-x11
libgtk-x11-2.0.so.0 (libc6,x86-64) => /usr/lib/libgtk-x11-2.0.so.0
libgtk-x11-2.0.so (libc6,x86-64) => /usr/lib/libgtk-x11-2.0.so
bash-2.05b$
|
lg., nes |
Ich kenne mich zwar nicht mit x86-64 aus, aber ich vermute mal das Problem ist, dass eclipse ne 32bit Anwendung ist ("libc.so.6 => /lib32/libc.so.6") und du damit nicht die "x86-64" version von libgtk verwenden kannst.
Du brauchst also noch ne 32bit version von libgtk, oder ein fuer 64bit kompiliertes eclipse. |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Sep 03, 2004 8:00 pm Post subject: |
|
|
dgently: Und ich darf mich mal wieder fragen, wozu ich die Brille auf der Nase habe... _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
|
nes Apprentice
Joined: 10 Aug 2004 Posts: 155 Location: Vienna/Austria
|
Posted: Fri Sep 03, 2004 8:49 pm Post subject: |
|
|
dgently wrote: |
Ich kenne mich zwar nicht mit x86-64 aus, aber ich vermute mal das Problem ist, dass eclipse ne 32bit Anwendung ist ("libc.so.6 => /lib32/libc.so.6") und du damit nicht die "x86-64" version von libgtk verwenden kannst.
Du brauchst also noch ne 32bit version von libgtk, oder ein fuer 64bit kompiliertes eclipse. |
Danke, das duerfte es wohl sein. Nur, wie bekomme ich die? Gar nicht? Das heisst, dass ich da per chroot eine komplette 32-Bit-Umgebung in die Höhe ziehen müsste?
lg., nes |
|
Back to top |
|
|
Carlo Developer
Joined: 12 Aug 2002 Posts: 3356
|
Posted: Fri Sep 03, 2004 9:11 pm Post subject: |
|
|
Nein, Du kannst - so denn die jeweiligen Ebuilds darauf vorbereitet sind - unter x86-64 32 und 64 bit parallel fahren.
emerge -s emul-linux _________________ Please make sure that you have searched for an answer to a question after reading all the relevant docs. |
|
Back to top |
|
|
nes Apprentice
Joined: 10 Aug 2004 Posts: 155 Location: Vienna/Austria
|
Posted: Sun Sep 05, 2004 6:12 am Post subject: |
|
|
Herzlichen Dank!
Mein Problem ist zwar definitiv nicht gelöst (Es gibt keinen eclipse-ebuild für amd64 bzw. ~amd64), aber mir ist jetzt zumindest mal klar warum mein naiver Ansatz einfach eclipse von www.eclipse.org runterzuladen und es damit auszuprobieren nicht funktionieren kann.
lg., nes |
|
Back to top |
|
|
|