[Asterisk-Dev] Re: Error in Res make file

Tony Mountifield tony at softins.clara.co.uk
Thu Feb 24 05:32:18 MST 2005


In article <016501c51a60$ef16d240$0901a8c0 at fantasy>,
Claus Futtrup <cf at internetit.dk> wrote:
> Hi Guys,
> 
> There is an error in the res/Makefile in CVS.
> 
>         @if ! which mpg123 &>/dev/null ; then \
>                 echo "*** You don't have mpg123 installed. You're going to 
> need ***";\
>                 echo "***       it if you want MusicOnHold 
> ***";\
>         elif ! mpg123 --longhelp 2>&1 | grep .59r &>/dev/null ; then \
>                         echo 
> "*************************************************************";\
>                         echo "*** You have the WRONG version of mpg123... 
> you need .59r ***";\
>                         echo "*** Use 'make mpg123' to get the right verison 
> ***";\
>                         echo 
> "*************************************************************";\
>         fi
>         ../mkdep $(CFLAGS) `ls *.c`
> 
> This check makes GREP go 100% CPU on RedHat...
> If removed everything is peachy...

1. What version of grep? (grep -V)

2. Try fgrep instead of grep; fgrep will not interpret the . as a wildcard.

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list