LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   ldconfig error (https://www.linuxquestions.org/questions/linux-software-2/ldconfig-error-406848/)

dave`2005 01-23-2006 04:16 AM

ldconfig error
 
Hi all,
Ive been having this problem since i upgraded from KDE 3.42 to 3.5, when compiling stuff i get this error:

Code:

/sbin/ldconfig: /lib/libFLAC.so.1.0 is not an ELF file - it has the wrong magic bytes at the start.
It also comes up as slackware is booting. I get the feeling this is the reason ive had problems installing things since the upgrade to 3.5. Can anyone tell me what this error means and hopefully how to fix it?

Any help appreciated.

Dave

carl0ski 01-23-2006 05:07 AM

Quote:

Originally Posted by dave`2005
Hi all,
Ive been having this problem since i upgraded from KDE 3.42 to 3.5, when compiling stuff i get this error:

Code:

/sbin/ldconfig: /lib/libFLAC.so.1.0 is not an ELF file - it has the wrong magic bytes at the start.
It also comes up as slackware is booting. I get the feeling this is the reason ive had problems installing things since the upgrade to 3.5. Can anyone tell me what this error means and hopefully how to fix it?

Any help appreciated.

Dave


check if the file
/lib/libFLAC.so.1.0
exists?

if it doesnt look in /usr/lib

if its there make a symlink to it

ln -s /usr/lib/libFLAC.so.1.0 /lib/libFLAC.so.1.0


Code:

[root@localhost etc]# locate libFLAC
/usr/lib/libFLAC.so.7
/usr/lib/libFLAC.so.7.0.0
/usr/lib64/libFLAC.so.7
/usr/lib64/libFLAC.so.7.0.0


carl0ski 01-23-2006 05:10 AM

Quote:

Originally Posted by dave`2005
Hi all,
Ive been having this problem since i upgraded from KDE 3.42 to 3.5, when compiling stuff i get this error:

Code:

/sbin/ldconfig: /lib/libFLAC.so.1.0 is not an ELF file - it has the wrong magic bytes at the start.
It also comes up as slackware is booting. I get the feeling this is the reason ive had problems installing things since the upgrade to 3.5. Can anyone tell me what this error means and hopefully how to fix it?

Any help appreciated.

Dave

also check if the link is broken
unfortunately the only way i know how to is in konqueror generally broken links have padlocks and plain white icon

try http://www.die.net/doc/linux/man/man8/ldconfig.8.html
#ldconfig -v


Try Installing/removing/rpairing Flac/vorbis
#grep libFLAC.so.1.0 /etc/*

"Mine shows up in /etc/ld.so.cache
does yours?"

last try
deleting /etc/ld.so.cache

sundialsvcs 01-23-2006 11:30 AM

You'll notice that there are certain places where a particular file, say in /usr/lib, is in fact a symbolic link to another file. If you are simply "copying" files (versus doing a smarter operation like rsync), you can wind up with a situation where some file winds up where a symlink ought to be.

Take a look at this file, and the files which surround it in the same place. I think you'll find that this one is "the odd man out." Look also at the contents of the file, say with a hex-editor or with less...

dave`2005 01-23-2006 06:02 PM

/lib/libFLAC.so.1.0 is there and isnt linked to anything. Mine doesnt show up in /etc/ld.so.cache :/

i deleted the flac package then used swaret to download it and install, after it installed, swaret started looking for missing dependancies and failed. It was looking for libFLAC.so.6 which is needed by flac-1.1.2-i486-1dfj. I have libFLAC.so.6, it is in /usr/lib. How do i let flac-1.1.2-i486-1dfj know that it is there?

Havent done anything more other than reboot and im still getting the 1st error message. Any ideas? Hopefully this is because it cant find libFLAC.so.6

dave`2005 01-25-2006 06:08 AM

Anyone have any other ideas? I dont want to format but this is really bugging me :/


All times are GMT -5. The time now is 06:39 PM.