LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-14-2006, 08:00 PM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
amarok error


Hi all, ive been trying to try out amarok, installed it, when i run it i get:

amaroK: [Loader] Starting amarokapp..
amaroK: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
amarokapp: error while loading shared libraries: libFLAC.so.6: cannot open shared object file: No such file or directory

I searched for the libflac .tgz but couldnt find one, then i read i could convert libflac-1.1.2-alt2.i586.rpm into a .tgz and use that to get the missing file. I converted it using rpm2pkg, when i try to install this i get:

Installing package libflac-1.1.2-alt2.i586...
PACKAGE DESCRIPTION:
/sbin/ldconfig: /lib/libFLAC.so.1.0 is not an ELF file - it has the wrong magic bytes at the start.

Anyone know what im doing wrong?

I upgraded to kde 3.5 earlier, dont know if thats relivant.

Last edited by dave`2005; 01-14-2006 at 08:02 PM.
 
Old 01-15-2006, 03:52 AM   #2
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
The package you are looking for is in the ap/ directory of your cd and is called flac-1.1.2-i486-2.tgz

Hope this helps

Samac
 
Old 01-15-2006, 08:07 AM   #3
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Found the flac package on the slackware cd 1, im getting this:

Code:
/mnt/cdrom/slackware/ap>installpkg flac-1.1.2-i486-2.tgz
Installing package flac-1.1.2-i486-2 ([optional])...
PACKAGE DESCRIPTION:
blablablablablabla
/sbin/ldconfig: /lib/libFLAC.so.1.0 is not an ELF file - it has the wrong magic bytes at the start.

Executing install script for flac-1.1.2-i486-2...
Tried to run amarok anyway and i get the same as before:

Code:
amaroK: [Loader] Starting amarokapp..
amaroK: [Loader] Don't run gdb, valgrind, etc. against this binary! Use amarokapp.
amarokapp: error while loading shared libraries: libFLAC.so.6: cannot open shared object file: No such file or directory
Any ideas?
 
Old 01-15-2006, 08:45 AM   #4
Oinopion
Member
 
Registered: May 2005
Location: Kraków, PL
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
Remove this RPM package You have installed. IMHO installpkg does not remove or overwite files by default.
 
Old 01-15-2006, 08:08 PM   #5
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
I uninstalled the rpm, then installed flac-1.1.2-i486-2.tgz off of cd1, got the same message as above. Also the same error message when trying to run amarok. Anyone know how to get round this?
 
Old 01-16-2006, 02:58 AM   #6
Oinopion
Member
 
Registered: May 2005
Location: Kraków, PL
Distribution: Slackware
Posts: 33

Rep: Reputation: 15
How did you uninstall it? Perhaps you may manualy remove 'bad' files?
 
Old 01-16-2006, 04:47 AM   #7
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
I removed using pkgtool, do you know what/where these bad files may be?
 
Old 01-16-2006, 07:52 PM   #8
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
anyone know where these bad files could be hiding?
 
Old 01-17-2006, 03:42 AM   #9
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
As root

removepkg flac

updatedb

locate flac

Anything that is left over must be from your rpm, just rm it.

Then installpkg flac...etc

Samac
 
Old 01-17-2006, 04:13 AM   #10
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
Problem is Slackware uses a different Version of libflac.so.
Try find / -name libFLAC.so
or find / -name libFLAC.so.*

After locating the file change to the folder and
ln -s libFLAC.so libFLAC.so.6

Worked for me ( had libFLAC.so.7 installed and got the same error message. creating a link to libFLAC.so.6 fixed it and amarok runs great )


You can as well have a look at the tgz-file (extract it) and see what files are in. then just link libFLAC.so to libFLAC.so.6.

Good luck!

Last edited by vbisis; 01-17-2006 at 04:17 AM.
 
Old 01-17-2006, 12:53 PM   #11
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Talking Solved

Thank you very much, linking libFLAC.so to libFLAC.so.6 worked still giving out some errors in the console but who cares it works ty.
 
Old 01-17-2006, 01:03 PM   #12
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Original Poster
Rep: Reputation: 30
Sorry to be a pain in the ass but im getting a very similar error from another package:

Code:
installpkg cabextract-1.1-i486-1rsa.tgz
Installing package cabextract-1.1-i486-1rsa...
PACKAGE DESCRIPTION:
cabextract: cabextract (A program to extract Microsoft Cabinet files)
cabextract:
cabextract: Cabinet (.CAB) files are a form of archive, which Microsoft use to
cabextract: distribute their software, and things like Windows Font Packs. The
cabextract: cabextract program unpacks these files. Build script is available
cabextract: at /usr/doc/cabextract-1.1.
cabextract:
cabextract: Packaged by R S Ananda Murthy on a stock Slackware 10.2 system.
/sbin/ldconfig: /lib/libFLAC.so.1.0 is not an ELF file - it has the wrong magic bytes at the start.
Any ideas if i can use linking to solve this one too? I've tried but not sure what to link it to.

dave.
 
Old 01-17-2006, 02:58 PM   #13
vbisis
Member
 
Registered: Dec 2005
Distribution: Slackware
Posts: 250

Rep: Reputation: 34
I think you can consider this message more as a warning.

Linking only helps if a program is looking for different version than installed. Well it actually a matter of try and error .

As far as I know ldconfig is responsible for letting your system know what libraries are installed and where they are.


http://www.linux-mips.org/wiki/ELF there is an explanation about elf

Maybe it helps you.
 
  


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
Using Amarok with Xine engine, strange error message Metalbarthug Linux - Software 2 11-16-2005 01:47 PM
amarok error mapesju Slackware 1 10-19-2005 08:47 AM
Amarok users..does anyone else get this error? RoaCh Of DisCor Linux - Software 2 08-05-2005 11:47 AM
I'm trying to install amarok-1.1.1 and i get an error... gbdavidx Slackware 5 12-04-2004 06:21 PM
Why do I get an error when I try to compile amaroK? or any software for that matter. EThitop Linux - Newbie 19 06-21-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:02 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
Open Source Consulting | Domain Registration