LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-22-2015, 05:46 AM   #1
Bedserxis
LQ Newbie
 
Registered: Jan 2015
Posts: 2

Rep: Reputation: Disabled
[Solved] Unable to start X on Debian Jessie following libpng installation


Hello,
I'm using Debian Jessie and have managed to break it - X won't start when I boot up and I can only use the command line. When I type startx the following is returned:
/usr/bin/X: error while loading shared libraries: libpng16.so.16: cannot open shared object file: No such file or directory.

To give some context, before this happened I downloaded and installed the latest libpng libraries from here:
http://www.libpng.org/pub/png/libpng.html

I think, however, libpng was already installed. When I navigate to /usr/local/lib and view the contents, they include:
libpng16.a
libpng16.la
libpng16.so
libpng16.so.16
libpng16.so.16.16.0
libpng.a
libpng.la
libpng.so

the three libpng files (without the 16) are links to their respective libpng16 files. libpng16.so and libpng16.so.16 are links to libpng16.so.16.16.0. And the files libpng16.a, libpng16.la and libpng16.so.16.16.0 are not links. All of these files have permissions rwxrwxrwx (777).

I have not been able to locate the config and log files for xorg (I did try the find command but it didn't return anything).

Does anyone have any advice? Thank you for your time.

UPDATE: Nevermind, I ran "sudo ldconfig" and it's fine now. I did search before writing this up and that suggestion had slipped me by, honest!

Last edited by Bedserxis; 01-22-2015 at 05:50 AM.
 
Old 01-23-2015, 04:13 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
The way to know what's going on is to run these
Quote:
ls -l /usr/lib/linpng*
ls -l /usr/lib32/libpng*

then run file on the target of symlinks
. Most systems need 64 bit files these days. Debian uses lib32, but most others put 32 bit in /usr/lib32 and 64 bit in /usr/lib64. If you have a /usr/lib64 with just a few files, that is probably wrongly installed. Applications need libraries of the correct width; 32 bit apps need 32 bit libs, 64 bit apps need 64 bit libs.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian's new Art Theme (Jessie aka Debian 8.x). jens Debian 2 11-11-2014 02:48 AM
LXer: Ubuntu 14.04 vs. Debian 7.3 vs. Debian Jessie Preview LXer Syndicated Linux News 0 01-27-2014 08:52 PM
[SOLVED] Unable to access Samba share on Debian Jessie amirgol Linux - Newbie 2 12-15-2013 04:43 PM
[SOLVED] Unable to start fedora installation Janek566 Fedora 9 02-02-2012 10:46 AM
Unable to start X after installation pwc101 Slackware 4 03-04-2006 03:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:21 AM.

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