LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-18-2015, 08:47 AM   #1
Doghouse87
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Rep: Reputation: Disabled
atom cannot start because libgtk-x11-2.0.so.0 is not found, but ldd can locate it


Hi everyone!

I've installed Atom editor on my Crunchbang VM. Atom depends on libc6>=2.15, but the stable Waldorf has libc6 2.13, so I had to set up dynamic linking as described here

After that, I get another issue trying to run atom:

Code:
andrey@crunchbang:~$ atom
andrey@crunchbang:~$ /usr/share/atom/atom: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
,which is strange, because the library is there and ldd can find it too:

Code:
andrey@crunchbang:~$ locate libgtk-x11-2.0.so.0
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0
/usr/lib/i386-linux-gnu/libgtk-x11-2.0.so.0.2400.10
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
/usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.10
andrey@crunchbang:~$ ldd /usr/share/atom/atom 
...
	libgtk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 (0x00007fef7aba6000)
	libgdk-x11-2.0.so.0 => /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0 (0x00007fef7a8f3000)
...
There is plenty of similar questions on LQ and on the web, but most of them were solved by installing libgtk (which I already have). I have also checked that symbolic link /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0 correctly points to /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0.2400.10, and even installed i386 version which seemed to help some people with their programs. Nothing helped so far, and I'm at a dead end here.

By the way, when I simply upgraded libc6 from the testing branch, I was able to run Atom right away without problems. However, the upgrade also broke my locale program and who knows what else, so I don't want to go the unstable way anymore.

Any ideas how to solve this? Thanks a lot!
 
Old 02-19-2015, 03:42 AM   #2
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,539

Rep: Reputation: Disabled
Sounds like there has been a code change since libc6 2.13 which is needed and libc6 2.15 (or greater) has the necessary routine. Run 'ldd' on 'atom' to check its dependancies. See if libc6 2.15 has been backported(?).
 
Old 02-19-2015, 03:58 AM   #3
Doghouse87
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
ldd does say that required library is not found:
Code:
andrey@crunchbang:/opt/pycharm$ ldd /usr/share/atom/atom 
/usr/share/atom/atom: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/share/atom/atom)
/usr/share/atom/atom: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/share/atom/libchromiumcontent.so)
/usr/share/atom/atom: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by /usr/share/atom/libgcrypt.so.11)
/usr/share/atom/atom: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.15' not found (required by /usr/share/atom/libgcrypt.so.11)
Atom also used to show similar message before I "patched" it as described in the mentioned GitHub comment, but now doesn't. I guess ldd simply can't know that newer version of libc is linked dynamically when Atom is run, hence the "not found" error.

Looks lke the issue is not with libc6, but with libgtk.
 
Old 02-19-2015, 04:36 AM   #4
Doghouse87
LQ Newbie
 
Registered: Feb 2015
Posts: 3

Original Poster
Rep: Reputation: Disabled
Turned out, it was my mistake. Details are not very clear to me, but apparently this dynamic loader uses separate ld.so.conf from the directory where libc6 2.19 resides, and I should've inserted the paths from /ect/ld.so.conf.d/*.conf files there. It's described in the instruction, I've just misunderstood the step.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
libgdk_pixbuf-2.0.so.0, libgdk-x11-2.0.so.0, libgtk-x11-2.0.so.0 dependency problem chintu00001 Red Hat 2 07-09-2012 06:22 AM
missing libgtk-x11-2.0.so.0 vlaspld Linux - Software 3 01-15-2006 03:14 PM
libgtk-x11-2.0.so.0 problem pacranch Amigo 4 04-16-2005 12:02 AM
firefox and libgtk-x11-2.0.so.0 Beire Debian 4 11-04-2004 03:16 PM
libgtk-x11 nautilus_1987 Linux - Software 8 09-22-2002 09:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration