LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   error while loading shared libraries: libpng.so.2: [I reinstalled libPNG!] (https://www.linuxquestions.org/questions/linux-software-2/error-while-loading-shared-libraries-libpng-so-2-%5Bi-reinstalled-libpng-%5D-481683/)

Shioni 09-08-2006 04:08 PM

error while loading shared libraries: libpng.so.2: [I reinstalled libPNG!]
 
Hi!
I have a problem. I had old image magick version installed, yesterday I decited to install the newest version from source. Compilation was successfull, but everytime I run it, I get:
Code:

convert: error while loading shared libraries: libpng.so.2: cannot open shared object file: No such file or directory
but I have that librarie, even when I type config, it shows, that I have that librarie, anyway I compiled it without PNG support, but still the same error. Then I put the slackware CD in and installed all the libraries from the "l" folder on slackware cd, did a ldconfig but the same error. Then I restarted my computer put in the Slackware CD 1 and installed everything, now the error was gone, but I found out that for some tools of ImageMagick, for example identify, it shows the same error. Then I decited to install the old ImageMagick again (I removed the new one), but still the same error, even now for the old one! I downloaded libPHP from linuxpackages.net tried different versions, but I still get the same error! I guess it's imagemagick problem, because GIMP works fine! Now everytime I try to install software with installpkg tool, I get this:
Code:

touch: cannot touch `usr/lib/perl5/i386-linux/perllocal.pod': No such file or directory
install/doinst.sh: line 3: usr/lib/perl5/i386-linux/perllocal.pod: No such file or directory

Any ideas where did I go wrong? Thank you!

win32sux 09-09-2006 07:21 PM

regarding this:
Quote:

Originally Posted by Shioni
Code:

touch: cannot touch `usr/lib/perl5/i386-linux/perllocal.pod': No such file or directory
install/doinst.sh: line 3: usr/lib/perl5/i386-linux/perllocal.pod: No such file or directory


FWIW, on my slackware 10.2 box the parent directory is i486-linux, not i386-linux... it also has an additional directory on top of that with the perl version:
Code:

root@carly:/home/win32sux# find / -name perllocal.pod -type f -exec ls -l {} \;
-rw-r--r--  1 root root 690 2005-07-13 14:15 /usr/lib/perl5/5.8.7/i486-linux/perllocal.pod

sounds like your package's doinst.sh script is ill, but i'm not sure...


All times are GMT -5. The time now is 04:50 PM.