LinuxQuestions.org
Review your favorite Linux distribution.
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 07-06-2006, 10:42 AM   #1
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Rep: Reputation: 15
How do I get and install a decent MP3 player for red hat?


Hello!

I've just recently installed RH AS x86_64. When I tried to play a mp3 file with xmms it told me that that feature had been disabled in this version of Red Hat. Xmms stinks anyway so I didn't really care.

I've previously used Fedora and the wonderful Amarok player. Is there any way of getting that to work easily on redhat? I only have the crappy up2date software and it doesn't provide amarok (like yum do). Amarok requires like 15 dependencies to work...

Also if there is any other easily accessible player around, please let me know.

Thanks in advance,
 
Old 07-06-2006, 11:21 AM   #2
Fadoksi
Member
 
Registered: Apr 2006
Location: Finland
Distribution: Ubuntu, Gentoo, Debian
Posts: 88

Rep: Reputation: 15
Compile amarok from sources.

http://amarok.kde.org/amarokwiki/index.php/Download

Here's a Installation HowTo:

http://amarok.kde.org/amarokwiki/ind...allation_HowTo
 
Old 08-04-2006, 01:22 PM   #3
chemichael
Member
 
Registered: Aug 2005
Location: Tucson, Arizona
Distribution: PCLinuxOS
Posts: 128

Rep: Reputation: 15
just a hint redhat does not come with MP3 support and you need to download and install the codecs you can get them from here http://www.mplayerhq.hu/design7/dload.html
 
Old 08-22-2006, 03:34 AM   #4
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
This is not working. Please help me compile and install Amarok!

After downloading the Amarok sourcecode I began installing the necessary other packages:

* KDE-Libs 3.3
http://www.kde.org

* TagLib 1.4
(metadata tagging library)
http://freshmeat.net/projects/taglib

* Ruby 1.8
(programming language, used for scoring, lyrics, last.fm streams)
http://www.ruby-lang.org

then I couldn't get the recommended

* xine-lib 1.0.2
Note: xine-lib 1.1.1 is required for gapless playback.
(multimedia framework)
http://xinehq.de/

to work so I installed the optional

* RealPlayer 10 or HelixPlayer 1.0
(multimedia framework)
http://www.real.com
(Note: only HelixPlayer is exactly RealPlayer without MP3 support)

I couldn't find the devel packages for all of these... not taglib or realplayer, and when I tried to run the ./configure command on amarok-1.4.2-beta1 it sais in the end:

checking for libXext... no
configure: error: We need a working libXext to proceed. Since configure
can't find it itself, we stop here assuming that make wouldn't find
them either.

Now... The versions of libXext I could find have like 10 to 15 dependancies that my newly installed and fully upgraded redhat WS doesn't have. I am going to stop here. this is really ridiculous. Can anyone tell me how to get a decent mp3-playing (note MP3) program to work under RHEL4. it would be nice if I didn't have to waste hours and hours trying to track down rpms and sourcecodes all over the net to get it to work.

I'm tired... Thanks for any help.
 
Old 08-22-2006, 11:20 PM   #5
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
This is a repeat of one of my earlier posts to someone with the same question. link to old post is http://www.linuxquestions.org/questi...38#post2253738

First install xmms rpm if its not installed.
# up2date xmms

Then list the files of this rpm
# rpm -ql xmms
here is the line of the output you'll be interested in...
/usr/lib/xmms/Input/librh_mp3.so

This is a dummy library supplied by RH, its suppose to be the mp3 library but due to licensing RH does not supply the working version of it. Instead all this library does is display a banner in xmms when you try to play a mp3 that states mp3 support has been disabled.

You need to delete the librh_mp3.so file and replace it with libmpg123.so.
To do this,
1. google for libmpg123
2. download the source
3. compile it
4. copy libmpg123.so to the /usr/lib/xmms/Input directory
5. delete the file /usr/lib/xmms/Input/librh_mp3.so
 
Old 08-23-2006, 08:59 AM   #6
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
Which rpm should I compile?

Hello again, thanks for the quick reply.

when I search for libmpg123.so I can only find several different rpms for xmms addons. When I try to install the xmms-mp3-1.2.10-16.el4.rf.i386.rpm it sais it requires libxmms.so.1

Is there anywhere I can simply find the file libmpg123.so so that I can copy it directly to the folder you described?

This really is amazing guys. Why in the name of all that is holy can't a decent mp3-plyer be installed EASILY on one of the leading linux distributions. I really want Amarok, but since it appears more or less impossible (for someone which actually have work to do as well) I guess I will have to settle for xmms... if this last issue is fixable that is.

thanks again for any help,
 
Old 08-23-2006, 07:54 PM   #7
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Hi,
First please use the "up2date" package manager, that's what its for. Just log in as root and type "up2date xmms".
This packge is provided by Redhat, installs with absolutely no problems along with all its dependencies.

Two seconds with google.com/linux and I found the source. It was #6 in the list.
http://sourceforge.net/projects/libmpg123/

This one is more up to date though, its the one I use.
http://freshmeat.net/projects/mpg123/

Last edited by randyding; 08-23-2006 at 08:07 PM.
 
Old 08-24-2006, 04:09 AM   #8
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
The problem continues...

I have used up2date from the beginning. The entire system is as up to date it can be (considering it is RHEL4 and not FC5).

When I download the rpm you recommended and tried to compile it this is what happened.
Now am I just outright clumsy or stupid or what is wrong. I am logged in as super user when I compile.


:/make linux
make CC=gcc LDFLAGS= \
OBJECTS='decode_i386.o dct64_i386.o decode_i586.o \
audio_oss.o term.o' \
CFLAGS='-DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX \
-DREAD_MMAP -DOSS -DTERM_CONTROL\
-Wall -O2 -m486 \
-fomit-frame-pointer -funroll-all-loops \
-finline-functions -ffast-math' \
mpg123-make
make[1]: Entering directory `/home/martin/mpg123-0.59r'
make[2]: Entering directory `/home/martin/mpg123-0.59r'
gcc -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX -DREAD_MMAP -DOSS -DTERM_CONTROL -Wall -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -c -o mpg123.o mpg123.c
mpg123.c: In function `shuffle_files':
mpg123.c:225: warning: implicit declaration of function `time'
mpg123.c: At top level:
mpg123.c:480: warning: initialization makes integer from pointer without a cast
gcc -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX -DREAD_MMAP -DOSS -DTERM_CONTROL -Wall -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -c -o common.o common.c
gcc -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX -DREAD_MMAP -DOSS -DTERM_CONTROL -Wall -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -c -o decode_i386.o decode_i386.c
gcc -DI386_ASSEM -DPENTIUM_OPT -DREAL_IS_FLOAT -DLINUX -DREAD_MMAP -DOSS -DTERM_CONTROL -Wall -O2 -m486 -fomit-frame-pointer -funroll-all-loops -finline-functions -ffast-math -c -o dct64_i386.o dct64_i386.c
as -o decode_i586.o decode_i586.s
decode_i586.s: Assembler messages:
decode_i586.s:44: Error: suffix or operands invalid for `push'
decode_i586.s:45: Error: suffix or operands invalid for `push'
decode_i586.s:46: Error: suffix or operands invalid for `push'
decode_i586.s:47: Error: suffix or operands invalid for `push'
decode_i586.s:67: Error: suffix or operands invalid for `push'
decode_i586.s:70: Error: suffix or operands invalid for `push'
decode_i586.s:81: Error: suffix or operands invalid for `push'
decode_i586.s:83: Error: suffix or operands invalid for `push'
decode_i586.s:86: Error: suffix or operands invalid for `push'
decode_i586.s:161: Error: suffix or operands invalid for `pop'
decode_i586.s:211: Error: suffix or operands invalid for `pop'
decode_i586.s:296: Error: suffix or operands invalid for `pop'
decode_i586.s:315: Error: suffix or operands invalid for `pop'
decode_i586.s:316: Error: suffix or operands invalid for `pop'
decode_i586.s:317: Error: suffix or operands invalid for `pop'
decode_i586.s:318: Error: suffix or operands invalid for `pop'
make[2]: *** [decode_i586.o] Error 1
make[2]: Leaving directory `/home/martin/mpg123-0.59r'
make[1]: *** [mpg123-make] Error 2
make[1]: Leaving directory `/home/martin/mpg123-0.59r'
make: *** [linux] Error 2

If this is making any sense to anyone? please let me know...
 
Old 08-24-2006, 04:16 AM   #9
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
the older file

And when I tried to compile the older file that you first suggested, this is what happened.

make
g++.exe -c mpglib/common.c -o mpglib/common.o -I"d:/Dev-Cpp/include/c++/3.3.1" -I"d:/Dev-Cpp/include/c++/3.3.1/mingw32" -I"d:/Dev-Cpp/include/c++/3.3.1/backward" -I"d:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include" -I"d:/Dev-Cpp/include" -DBUILDING_DLL=1
/bin/sh: g++.exe: command not found
make: *** [mpglib/common.o] Error 127

I realize it is supposed to work... so It is definitely not chritisism to anyone of you. It is just that the whole thing is very frustrating and I don\t really have time for it. I am really thankful for the help.
 
Old 08-24-2006, 06:46 AM   #10
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Quote:
It is just that the whole thing is very frustrating and I don\t really have time for it.
If you don't have time to figure out such a simple thing as playing MP3s, you don't have time for Linux.

Google "fedora mp3" ... first response is http://www.fedorafaq.org/ which includes explicit instructions.
 
Old 08-24-2006, 07:18 AM   #11
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
I have been trying, read above please

Now that is very constructive. thank you ver much. I have fedora at home, I love it. There is absolutely no problem installing all kinds of mp3-playing software on fedora using yum. A child could do it. Now if you would have read my posts above you would have seen that I am in fact trying to install on RHEL4 WS, which only have the redhat up2date program. It can hence not install programs other than the recommended redhat apps.

The irritating thing is that it is indeed so much harder (obviously), using redhat. If there is something wrong with my recently installed and fully upgraded version of redhat then I can't see what it is. All I see is that there are always dependancies missing, or that the packages I find on the net (some recommended by people in this forum) can't be compiled without errors.

So please! I am really trying here. Help!
 
Old 08-24-2006, 07:28 AM   #12
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 62
Following instructions on the link I gave you, I goggled "xmms-mp3 download" I was immediately taken to a page which included an .rpm ... I assume that RHEL has rpm installed.
 
Old 08-24-2006, 07:54 AM   #13
martinr
Member
 
Registered: Mar 2006
Location: Stockholm, Sweden
Distribution: FC10 x86_64, RHEL4/5 x86_64
Posts: 87

Original Poster
Rep: Reputation: 15
I'm sorry. I don't find any link to any rpm on fedoras FAQ site (your link), only an instruction how to install it using yum. The fist thing you see on google when searching for "xmms-mp3 download" is the links to guru-labs. which does not have ANY rpm suitable for redhat enterprise 4. The only one that can be istalled without missing libxmms.so.1 is the one for redhat 9. which by the way, doesn't work. I tried all that yesterday.

The second link, rpmseek... well what can I say. I have tried to find something that actually works there for a while. fc4 or fc5 rpms wont do the trick. Now I have uninstalled my version of xmms. and I'll try to install one from another distro... this is just ugly.
 
Old 08-24-2006, 09:32 PM   #14
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
First I want to let you know I can't reproduce my libmpg123.so anymore from the source code I told you to download. I built my library back when I had Redhat WS 3.0, and the one I build now with 4.0 does not work with xmms anymore... I have not figured out why yet, though its not a compiling problem like you are seeing.
I'd be willing to give you my working libmpg123.so library if you email me, I'll reply and attach it. That's all I can offer until I figure out why I can't rebuild a working version anymore.


Now with xmms, I'm not quite following what you are doing with up2date. You seem to be saying you first download the rpm and then install it? That's not the way to do it. To have the benefit of the package manager just type "up2date xmms" and it will pull the xmms rpm and all of its dependencies from the Redhat site and install all of them. Do not download the rpm itself and install it by hand with the rpm program.

You also say you compile the rpm, I don't mean download the source rpm, just get it through redhat the normal way, prebuilt.
 
Old 08-25-2006, 01:14 AM   #15
randyding
Member
 
Registered: May 2004
Posts: 552

Rep: Reputation: 31
Ok sorry for the confusion about the mp3 library, I figured out why I couldn't make it work. Way back when I did this, I compiled xmms from source and it provided the library. It creates a working libmpg123.so you can use. Xmms source can be d/l from http://www.xmms.org/
 
  


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
MP3 Player for Red Hat 9 CMOT-Dibler Linux - General 3 08-25-2005 02:14 AM
how can i play mp3 files in red hat linux 9 using xmms player? nikhil_imt Linux - Software 4 01-24-2005 02:43 PM
MP3 Player for RED HAT LINUX Enterprise 3 RatanSA Linux - Newbie 2 10-27-2004 02:51 AM
Mounting Gateway DMP 200 MP3 Player on Red Hat 9 g0d Linux - Hardware 1 06-03-2004 08:57 PM
MP3 Support in Red Hat 9.1.............? Theoutdoorsman Linux - Software 5 10-07-2003 10:30 PM

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

All times are GMT -5. The time now is 05:43 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