LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   amarok error (https://www.linuxquestions.org/questions/slackware-14/amarok-error-403437/)

dave`2005 01-14-2006 07:00 PM

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.

samac 01-15-2006 02:52 AM

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

dave`2005 01-15-2006 07:07 AM

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?

Oinopion 01-15-2006 07:45 AM

Remove this RPM package You have installed. IMHO installpkg does not remove or overwite files by default.

dave`2005 01-15-2006 07:08 PM

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? :confused:

Oinopion 01-16-2006 01:58 AM

How did you uninstall it? Perhaps you may manualy remove 'bad' files?

dave`2005 01-16-2006 03:47 AM

I removed using pkgtool, do you know what/where these bad files may be?

dave`2005 01-16-2006 06:52 PM

anyone know where these bad files could be hiding?

samac 01-17-2006 02:42 AM

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

vbisis 01-17-2006 03:13 AM

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!

dave`2005 01-17-2006 11:53 AM

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.

dave`2005 01-17-2006 12:03 PM

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.

vbisis 01-17-2006 01:58 PM

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.


All times are GMT -5. The time now is 07:38 PM.