LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 02-07-2010, 01:24 PM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
libpng12.so.0: cannot open shared object file: No such file or directory


Neither VirtualBox nor FVWM2 can start because of this error:

libpng12.so.0: cannot open shared object file: No such file or directory

What should I do?
 
Old 02-07-2010, 02:06 PM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,850

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
Is libpng installed? Otherwise, where did you get the packages for these programs? They might not have been the right ones for your system.
 
Old 02-07-2010, 02:07 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Look at however arch manages packages and find which version is
installed (if any) and which package holds it, or if it's part of
removed (currently not installed) packages, install it.


A good start is always
Code:
ls -ld $(locate -r libpng.*\.so.*)
 
Old 02-07-2010, 02:25 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,112

Rep: Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591Reputation: 1591
Quote:
Neither VirtualBox nor FVWM2 can start because of this error:
How old are these two ?
What versions are they ?
libpng 12 is very old - VERY OLD
 
Old 02-07-2010, 03:02 PM   #5
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Code:
$ sudo ls -ld $(locate -r libpng.*\.so.*)
Password:
lrwxrwxrwx 1 root root     18 Jan 27 20:48 /usr/lib/libpng14.so -> libpng14.so.14.0.0
lrwxrwxrwx 1 root root     18 Jan 27 20:48 /usr/lib/libpng14.so.14 -> libpng14.so.14.0.0
-rwxr-xr-x 1 root root 183348 Jan 27 20:48 /usr/lib/libpng14.so.14.0.0
lrwxrwxrwx 1 root root     11 Jan 27 20:48 /usr/lib/libpng.so -> libpng14.so
-rwxr-xr-x 1 root root  12464 Jan 30 21:28 /usr/lib/vlc/codec/libpng_plugin.so
 
Old 02-07-2010, 03:02 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by John VV View Post
How old are these two ?
What versions are they ?
libpng 12 is very old - VERY OLD
The latest versions.
 
Old 02-07-2010, 03:09 PM   #7
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
The presence of libpng14 makes me wonder where you dug up
VirtualBox or FVWM2 from ... are they packages that are
made for your distro?

If they're not, there's always the ugly kludge approach
of simply creating a symlink from libpng14.so to the 12 version
and hope the programming interface hasn't changed too much
between those versions.



Cheers,
Tink

Last edited by Tinkster; 02-07-2010 at 03:12 PM.
 
1 members found this post helpful.
Old 02-07-2010, 03:24 PM   #8
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Quote:
Originally Posted by Tinkster View Post
The presence of libpng14 makes me wonder where you dug up
VirtualBox or FVWM2 from ... are they packages that are
made for your distro?

If they're not, there's always the ugly kludge approach
of simply creating a symlink from libpng14.so to the 12 version
and hope the programming interface hasn't changed too much
between those versions.



Cheers,
Tink
They aren't because I prefer the unstable version of FVWM and I got VirtualBox from the VirtualBox website.
 
Old 02-07-2010, 03:27 PM   #9
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,208

Rep: Reputation: 147Reputation: 147
Code:
ln -s /usr/lib/libpng.so /usr/lib/libpng12.so.0
 
Old 02-07-2010, 04:10 PM   #10
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
Still FVWM won't compile, it complains about something having to do with PNG. It did that before.
 
Old 02-15-2010, 07:20 AM   #11
itsbrad212
Member
 
Registered: Nov 2009
Location: Chicago
Distribution: Arch and OpenBSD
Posts: 104

Rep: Reputation: 19
I am also trying to run PlaneShift (a RPG) and it complains about not having libpng12. The latest version is very recent, so I don't have a clue why they are clinging to linpng12

(BTW, to confirm MTK358's error, I get "./pslaunch.bin: /usr/lib/libpng12.so.0: version `PNG12_0' not found (required by ./pslaunch.bin)")

Last edited by itsbrad212; 02-15-2010 at 07:22 AM.
 
Old 02-15-2010, 07:43 AM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Original Poster
Rep: Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713Reputation: 713
At least I don't have to worry about FVWM anymore because I found that the "unstable" version can be gotten from the repos as "fvwm-devel". The only reason I wanted to compile is because I thought that the repos didn't have this newer version.

And I uninstalled VirtualBox (I haven't even used it), but if I ever need it I will do it via AUR so pacman will know about it, instead of me having to remember where that binary installer is all the time, in case I want to upgrade or uninstall it.

Because of this, I deleted the libpng12 -> libpng14 link, too.

I wonder why does the program specify the version it wants. Shouldn't it not care about the version and use whatever is here?

Last edited by MTK358; 02-15-2010 at 07:44 AM.
 
Old 02-15-2010, 01:52 PM   #13
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,950
Blog Entries: 11

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
Quote:
Originally Posted by MTK358 View Post
I wonder why does the program specify the version it wants. Shouldn't it not care about the version and use whatever is here?
The potential pitfall with that is that the guys
making the libraries may change the interface they
use from version to version; and that may only surface
in one out of say 200 functions; now, your program
compiled against a different (I'm not saying older or
newer specifically because they regression from your
programs point of view may be either direction) library
may work 99% of the time but display funny behaviour
you can't assess easily .... so it's safer to make it
quite clear which version of the library the program
builds against and runs as expected.



Cheers,
Tink
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libipr.so.6: cannot open shared object file: no such file or directory praveen49 General 3 07-30-2008 01:47 PM
libGL.so.1: cannot open shared object file: No Such file or directory Cinematography Linux - Hardware 1 10-22-2007 09:16 PM
libdb_java-4.5.so: cannot open shared object file: No such file or directory jimmyjiang Red Hat 1 09-02-2007 05:02 AM
cannot open shared object file: No such file or directory (0) SQLSTATE=00000?? suliman_shah Programming 3 08-23-2007 01:02 PM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 08:34 AM


All times are GMT -5. The time now is 05:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration