Problem to install asterisk

hi,
can you help me please,
when i try to install asterisk , I got :
[color=green][root@localhost asterisk-1.2.5]#
[root@localhost asterisk-1.2.5]# make
build_tools/make_version_h > include/asterisk/version.h.tmp
if cmp -s include/asterisk/version.h.tmp include/asterisk/version.h ; then echo; else
mv include/asterisk/version.h.tmp include/asterisk/version.h ;
fi

rm -f include/asterisk/version.h.tmp
if cmp -s .cleancount .lastclean ; then echo ; else
make clean; cp -f .cleancount .lastclean;
fi

build_tools/make_defaults_h > defaults.h.tmp
if cmp -s defaults.h.tmp defaults.h ; then echo ; else
mv defaults.h.tmp defaults.h ;
fi

rm -f defaults.h.tmp
for x in res channels pbx apps codecs formats agi cdr funcs utils stdtime; do make -C $x depend || exit 1 ; done
make[1]: Entering directory /usr/src/asterisk-1.2.5/res' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/res’
make[1]: Entering directory /usr/src/asterisk-1.2.5/channels' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/channels’
make[1]: Entering directory /usr/src/asterisk-1.2.5/pbx' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/pbx’
make[1]: Entering directory /usr/src/asterisk-1.2.5/apps' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/apps’
make[1]: Entering directory /usr/src/asterisk-1.2.5/codecs' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/codecs’
make[1]: Entering directory /usr/src/asterisk-1.2.5/formats' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/formats’
make[1]: Entering directory /usr/src/asterisk-1.2.5/agi' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/agi’
make[1]: Entering directory /usr/src/asterisk-1.2.5/cdr' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/cdr’
make[1]: Entering directory /usr/src/asterisk-1.2.5/funcs' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/funcs’
make[1]: Entering directory /usr/src/asterisk-1.2.5/utils' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/utils’
make[1]: Entering directory /usr/src/asterisk-1.2.5/stdtime' make[1]: Rien ? faire pour ? depend ?. make[1]: Leaving directory/usr/src/asterisk-1.2.5/stdtime’
cd editline && unset CFLAGS LIBS && test -f config.h || ./configure
loading cache ./config.cache
checking for gcc… gcc
checking whether the C compiler (gcc ) works… no
configure: error: installation or configuration problem: C compiler cannot create executables.
make: *** [editline/libedit.a] Erreur 1
[root@localhost asterisk-1.2.5][/color]#

or I already installed gcc. when i do rpm -qa|grep gcc i got :

[color=green][root@localhost asterisk-1.2.5]#
[root@localhost asterisk-1.2.5]# rpm -qa|grep gcc
libgcc-3.4.2-6.fc3
compat-gcc-objc-8-3.3.4.2
gcc-gnat-3.4.2-6.fc3
gcc-3.4.2-6.fc3
gcc-objc-3.4.2-6.fc3
compat-gcc-java-8-3.3.4.2
gcc-g77-3.4.2-6.fc3
compat-gcc-c+±8-3.3.4.2
gcc4-4.0.0-0.8
gcc-java-3.4.2-6.fc3
gcc4-gfortran-4.0.0-0.8
gcc-c+±3.4.2-6.fc3
compat-gcc-8-3.3.4.2
gcc4-c+±4.0.0-0.8
compat-gcc-g77-8-3.3.4.2
[root@localhost asterisk-1.2.5]#
[root@localhost asterisk-1.2.5]#
[root@localhost asterisk-1.2.5]#[/color]

help me please .
thanks
Aicha

you might be missing the following packages :

binutils
kernel-headers
glibc-devel

try installing those and have another go.

hi,
glib-devel was already installed,

[color=green][root@localhost aicha-install]# rpm -qa|grep glibc
glibc-utils-2.3.3-74
glibc-2.3.3-74
glibc-kernheaders-2.4-9.1.87
glibc-devel-2.3.3-74
glibc-profile-2.3.3-74
glibc-common-2.3.3-74
glibc-headers-2.3.3-74
[root@localhost aicha-install]#[/color]

binutils also,
[color=green][root@localhost aicha-install]# rpm -qa|grep binutils
binutils-2.15.92.0.2-5
[root@localhost aicha-install]#[/color]

I tried to install kernel-headers, and i downloaded ‘[color=green]linux-kernel-headers-2.6.17.3.orig.tar.gz[/color]’ but there is no install file there !
help please
Aicha