How do i install asterisk1.4.0 with linux fedora

I have set up asterisk 1.4.0 base on helpdocument.But it have warns!
Exsample:
[root@localhost ~]# cd /usr/lanh/libpri-1.4.0
[root@localhost libpri-1.4.0]# make clean;make install
rm -f *.o *.so *.lo *.so.1 *.so.1.0
rm -f testprilib libpri.a libpri.so.1.0
rm -f pritest pridump
rm -f .depend
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o copy_string.o copy_string.c
make: gcc: Command not found
make: *** [copy_string.o] Error 127
[root@localhost libpri-1.4.0]# make all;make install
CC=gcc ./mkdep -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g ls *.c
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o copy_string.o copy_string.c
make: gcc: Command not found
make: *** [copy_string.o] Error 127
gcc -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -g -c -o copy_string.o copy_string.c
make: gcc: Command not found
make: *** [copy_string.o] Error 127
[root@localhost libpri-1.4.0]#
[root@localhost libpri-1.4.0]# cd /usr/lanh/zaptel1.4.1
bash: cd: /usr/lanh/zaptel1.4.1: No such file or directory
[root@localhost libpri-1.4.0]# cd usr/lanh/zaptel-1.4.1
bash: cd: usr/lanh/zaptel-1.4.1: No such file or directory
[root@localhost libpri-1.4.0]# cd
[root@localhost ~]# cd /usr/lanh/zaptel-1.4.1
[root@localhost zaptel-1.4.1]# make all;make install
grep: /lib/modules/2.6.18-1.2798.fc6/build/include/linux/autoconf.h: No such file or directory
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See config.log' for more details. make: *** [config.status] Error 1 grep: /lib/modules/2.6.18-1.2798.fc6/build/include/linux/autoconf.h: No such file or directory checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH Seeconfig.log’ for more details.
make: *** [config.status] Error 1
[root@localhost zaptel-1.4.1]# cd
[root@localhost ~]# cd /usr/lanh/asterisk1.4.2
bash: cd: /usr/lanh/asterisk1.4.2: No such file or directory
[root@localhost ~]# cd /usr/lanh/asterisk-1.4.2
[root@localhost asterisk-1.4.2]# make all;make install


**** The configure script must be executed before running ‘make’.


make: *** [makeopts] Error 1


**** The configure script must be executed before running ‘make’.


make: *** [makeopts] Error 1
[root@localhost asterisk-1.4.2]# ./configure;make all;make install
checking build system type… i686-pc-linux-gnu
checking host system type… i686-pc-linux-gnu
checking for gcc… no
checking for cc… no
checking for cl.exe… no
configure: error: no acceptable C compiler found in $PATH
See `config.log’ for more details.


**** The configure script must be executed before running ‘make’.


make: *** [makeopts] Error 1


**** The configure script must be executed before running ‘make’.


make: *** [makeopts] Error 1
[root@localhost asterisk-1.4.2]# d

Now!i can’t known reason!plesea,help me! :roll: :roll: :roll: :?:

isn’t checking for gcc... no checking for cc... no checking for cl.exe... no configure: error: no acceptable C compiler found in $PATH a bit of a clue ?

either your path is incorrect, or the tools are missing. there are only a few real dependencies for compiling Asterisk, but a compiler is one of them !

rec’d in PM [quote=“lanhdnvn”]it is very difficult to understand what you see!
why don’t you direct for me correctly![/quote]

can i be frank here ? if you cannot read the error messages that you’re getting, you have no business installing Asterisk. i appreciate that English is proably not your native language, but the error is very clear … you need to install the developer tools for your platform before you can compile applications such as this.

the chances are you have a GUI based install, there’s probably even a control panel applet that lets you install additional packages … see if you can find it and install the missing bits.

just to make this clear too, i don’t work for Digium … if i did, they would have fired me by now for spending so long on these forums !

baconbuttie, thanks for clarifying in this post that you’re not a Digium employee. Though Digium employees aren’t exempt from the frustrations of explaining “obvious” error messages, I like to think we’re pretty good at behaving courteously and professionally – especially to newcomers to the Asterisk community.

I’m resurrecting this post after more than 18 months because a Digium Technical Support customer brought it specifically to my attention, with concerns that baconbuttie’s comments don’t reflect positively on the Asterisk community at large. It’s easy to see how the specific posts recorded here could be more welcoming, and I’d like to encourage baconbuttie and others to remember that there’s room for everyone in the Asterisk community, and that anyone can contribute and participate – whether they’re veterans to Linux, Open Source, etc, or not.

In case lanhdnvn isn’t yet an Asterisk expert, I’d also like to point out that we’ve just released the Asterisk Now 1.5 Beta (check out asterisknow.org ). This Asterisk distribution is intended to be as simple as possible to install and begin using – Asterisk is pre-built, and there’s no chance of encountering the specific types of problems lanhdnvn describes in this post.

Cheers,
~Kenny Shumard
Digium Technical Support Manager

True enough asterisknow is easy to use. though a more “custom” is nice to have too.

As noted before you are missing a compiler. you should run the following command and then try again:

Yum -y install gcc make

also, fedora repositories should have asterisk in them too. so if compiling it from source does not work try:

You might need to add some more asterisk packages for functionality like: Asterisk-alsa asterisk-voicemail and such.