Why does mpg123 installation fail?

Hi,

I tried to install mpg123 on AsteriskNOW 1.7.1 distribution, which end up with FreePBX 2.7.0.0

[[email protected] lib]# cd /usr/src
[[email protected] src]# ls -l
total 780
drwxr-xr-x 2 root root 4096 Jan 26 2010 debug
drwxr-xr-x 7 root root 4096 Feb 10 08:44 freepbx-2.7.0
drwxr-xr-x 2 root root 4096 Jan 26 2010 kernels
drwxrwxrwx 9 500 1000 4096 Feb 25 15:11 mpg123-1.13.2
-rw-r–r-- 1 root root 764594 Feb 25 12:51 mpg123-1.13.2.tar.bz2
[[email protected] src]# cd mpg123-1.13.2
[[email protected] mpg123-1.13.2]# ./configure
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking for -Werror in CFLAGS (It breaks tests)… no
checking if you are up to something totally static with LDFLAGS/CFLAGS… no
checking for style of include used by make… GNU
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: in /usr/src/mpg123-1.13.2': configure: error: no acceptable C compiler found in $PATH Seeconfig.log’ for more details
[[email protected] mpg123-1.13.2]#

Any clue why that does not work ?

Thanks

Andree

OK I did it like that, the rpm’s I got from http://pkgs.org/:

[[email protected] lib]# cat /etc/asterisk/musiconhold_additional.conf
[default]
mode=files
directory=/var/lib/asteriskmoh/
[none]
mode=files
directory=/var/lib/asteriskmoh/.nomusic_reserved

[[email protected] lib]# cd /var/lib
[[email protected] lib]# mkdir asteriskmoh
[[email protected] lib]# chown asterisk:asterisk asteriskmoh

[[email protected] tmp]# ls -l
total 728
-rw-r–r-- 1 root root 101811 Feb 25 16:02 audiofile-0.2.6-1.el4.1.i386.rpm
-rw-r–r-- 1 root root 123630 Feb 25 16:03 esound-0.2.35-2.i386.rpm
-rw-r–r-- 1 root root 482359 Feb 25 15:54 mpg123-1.9.1-1.el4.rf.i386.rpm

[[email protected] tmp]# rpm -i mpg123-1.9.1-1.el4.rf.i386.rpm
warning: mpg123-1.9.1-1.el4.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
error: Failed dependencies:
libaudiofile.so.0 is needed by mpg123-1.9.1-1.el4.rf.i386
libesd.so.0 is needed by mpg123-1.9.1-1.el4.rf.i386
[[email protected] tmp]# ls -l
total 600
-rw-r–r-- 1 root root 101811 Feb 25 16:02 audiofile-0.2.6-1.el4.1.i386.rpm
-rw-r–r-- 1 root root 482359 Feb 25 15:54 mpg123-1.9.1-1.el4.rf.i386.rpm
-rw-r–r-- 1 root root 17928 Feb 25 15:50 mpg123-devel-1.9.1-1.el4.rf.i386.rpm
[[email protected] tmp]# rpm -i audiofile-0.2.6-1.el4.1.i386.rpm
warning: audiofile-0.2.6-1.el4.1.i386.rpm: Header V3 DSA signature: NOKEY, key ID 443e1821
[[email protected] tmp]# rpm -i esound-0.2.35-2.i386.rpm
warning: esound-0.2.35-2.i386.rpm: Header V3 DSA signature: NOKEY, key ID 443e1821
[[email protected] tmp]# rpm -i mpg123-1.9.1-1.el4.rf.i386.rpm
warning: mpg123-1.9.1-1.el4.rf.i386.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6

After loading the MP3 via “Music on Hold”, following files are visible:

[[email protected] asteriskmoh]# cd /var/lib/asteriskmoh
total 9312
-rw-r–r-- 1 asterisk asterisk 3357912 Feb 25 16:13 wav_lte-announce1.wav
-rw-r–r-- 1 asterisk asterisk 3009112 Feb 25 16:12 wav_lte-announce2.wav
-rw-r–r-- 1 asterisk asterisk 3150766 Feb 25 16:11 wav_lte-announce3.wav

It is in the log:
configure: error: no acceptable C compiler found in $PATH

You must install a C-compiler. Search for yum install gcc and you will find plenty of information