CentOS 5 will not show PNG icons, errors when X starts.
This is related to remote desktop over VNC. I'm not sure if this should be posted in the Desktop or Server section. I'm sure a mod will move this if necessary.
In short, the problem is that CentOS 5 won't recognize PNG files. There are a few errors about it when X starts. The end result is that icons in PNG format don't show up on the desktop or in the menus. I tried re-installing gtk2 and libpng but with no success. Here are 4 related errors that show when X is started: Quote:
Quote:
Quote:
Quote:
|
AFAIK libpng12 should reside in /usr/lib/ and not /usr/local/lib/. So what did you do that makes this a non-standard install of that library and does one reside in /usr/lib?
|
Quote:
Code:
yum remove libpng |
Can you post what 'rpm -qf /usr/local/lib/libpng12.so.0' returns? And 'rpm -ql $(rpm -qf /usr/local/lib/libpng12.so.0)'? Do you by any chance export a LD_LIBRARY_PATH ?
|
Quote:
file /usr/local/lib/libpng12.so.0 is not owned by any package Quote:
/usr/bin/file /usr/include/magic.h /usr/lib/libmagic.a /usr/lib/libmagic.so /usr/lib/libmagic.so.1 /usr/lib/libmagic.so.1.0.0 /usr/share/doc/file-4.17 /usr/share/doc/file-4.17/LEGAL.NOTICE /usr/share/doc/file-4.17/README /usr/share/file /usr/share/file/magic /usr/share/file/magic.mgc /usr/share/file/magic.mime /usr/share/file/magic.mime.mgc /usr/share/magic /usr/share/magic.mime /usr/share/man/man1/file.1.gz /usr/share/man/man3/libmagic.3.gz /usr/share/man/man5/magic.5.gz /usr/share/misc/magic package /usr/local/lib/libpng12.so.0 is not installed package is is not installed package not is not installed package owned is not installed package by is not installed package any is not installed package package is not installed Quote:
|
Quote:
|
Quote:
Quote:
Code:
[root@order4992 ~]# echo $LD_LIBRARY_PATH I'm unclear about the second command you mentioned. Should I just run it or do I need to check start-up scripts first? |
Quote:
Quote:
0) LD_LIBRARY_PATH doesn't export /usr/local/lib, and 1) no currently running process uses /usr/local/lib/libpng12.so.0 ('/usr/sbin/lsof -Pwn | grep '/usr/local/lib/libpng';'), and 2) /etc/ld.so.conf.d/ doesn't include a file that covers /usr/local/lib ('grep -r '/usr/local/' /etc/ld.so.conf.d/') and 3) ldconfig doesn't show any ('/sbin/ldconfig -p|grep '/usr/local/lib/libpng';'), then you could rename the library before deciding to (make a backup and) remove it. After that install libpng with yum (unless 'locate libpng' already shows it to reside in /usr/lib), run ldconfig, run prelink (if applicable) and test. |
Quote:
Quote:
Code:
[root@server ~]# /usr/sbin/lsof -Pwn | grep '/usr/local/lib/libpng' Quote:
Code:
[root@server ~]# grep -r '/usr/local/' /etc/ld.so.conf.d/ Quote:
Code:
[root@server ~]# /sbin/ldconfig -p|grep '/usr/local/lib/libpng' Quote:
Code:
[root@server ~]# locate libpng |
Quote:
|
Then does anyone else have an idea about the right way to install libpng? Installing with yum seems to place it in the wrong directory.
|
All times are GMT -5. The time now is 02:10 AM. |