LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 04: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, 05: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, 05: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 05:24 AM.
 
Old 01-23-2006, 11:30 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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, 06: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 06:06 PM.
 
Old 01-25-2006, 06: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



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 will not run - bus error scottlyter Linux - Software 2 07-18-2023 04:11 AM
ldconfig ERROR demonlj Linux From Scratch 4 09-05-2005 02:47 PM
Error running ldconfig Menestrel Linux - Newbie 2 04-15-2004 04:31 AM
ldconfig error kev82 Linux - General 3 01-01-2004 10:41 AM
Intel Compiler ldconfig error glock27linux Linux - Software 0 12-30-2003 05:30 PM

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

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

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
Open Source Consulting | Domain Registration