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

[root@asterisk01 lib]# cd /usr/src
[root@asterisk01 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
[root@asterisk01 src]# cd mpg123-1.13.2
[root@asterisk01 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
[root@asterisk01 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/:

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

[root@asterisk01 lib]# cd /var/lib
[root@asterisk01 lib]# mkdir asteriskmoh
[root@asterisk01 lib]# chown asterisk:asterisk asteriskmoh

[root@asterisk01 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

[root@asterisk01 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
[root@asterisk01 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
[root@asterisk01 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
[root@asterisk01 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
[root@asterisk01 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:

[root@asterisk01 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