LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-23-2006, 05:16 AM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
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
 
Old 01-23-2006, 06:07 AM   #2
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
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
 
Old 01-23-2006, 06:10 AM   #3
carl0ski
Member
 
Registered: Sep 2004
Location: Melbourne, Victoria Australia
Distribution: Support those that support you :)
Posts: 872
Blog Entries: 12

Rep: Reputation: 30
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

Last edited by carl0ski; 01-23-2006 at 06:24 AM.
 
Old 01-23-2006, 12:30 PM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
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...
 
Old 01-23-2006, 07:02 PM   #5
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
/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

Last edited by dave`2005; 01-23-2006 at 07:06 PM.
 
Old 01-25-2006, 07:08 AM   #6
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Anyone have any other ideas? I dont want to format but this is really bugging me :/
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
ldconfig ERROR demonlj Linux From Scratch 4 09-05-2005 03:47 PM
ldconfig will not run - bus error scottlyter Linux - Software 1 10-25-2004 05:45 AM
Error running ldconfig Menestrel Linux - Newbie 2 04-15-2004 05:31 AM
ldconfig error kev82 Linux - General 3 01-01-2004 11:41 AM
Intel Compiler ldconfig error glock27linux Linux - Software 0 12-30-2003 06:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:57 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration