# Problem with 'make' in asterisk

**URL:** <https://community.asterisk.org/t/problem-with-make-in-asterisk/14927>\
**Category:** Asterisk Support\
**Created:** [June 9, 2007, 9:51pm UTC](https://community.asterisk.org/t/problem-with-make-in-asterisk/14927 "2007-06-09T21:51:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![deq](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@deq](https://community.asterisk.org/u/deq)\
**Post date:** [June 9, 2007, 9:51pm UTC](https://community.asterisk.org/t/problem-with-make-in-asterisk/14927/1 "2007-06-09T21:51:53Z")

</div>

Hi all,

I am new to asterisk and have recently installed ubuntu 6.06 successfully.  
I obtained the lastest source code for zaptel, libpri and asterisk from digium.  
I successfully compiled zaptel and libpri.  
Got the following error compiling asterisk.  
"The configure script must be executed before running ‘make’."  
These are the steps I took from the beginning.

To obtain asterisk: (same for zaptel and libpri)  
$ wget --passive-ftp [ftp.digium.com/pub/asterisk/asterisk-1.4.4.tar.gz](http://ftp.digium.com/pub/asterisk/asterisk-1.4.4.tar.gz)

To extract asterisk source code.  
$tar zxvf asterisk-1.4.4.tar.gz

To compile asterisk  
$cd /usr/src/asterisk-1.4.4  
$make clean  
$make

This is the point when I get the error “The configure script must be executed before running ‘make’.”

To resolve this, I tried to do a configure  
$./configure

With the above configure I get the following error.  
"termcap support not found

At this point, I installed libtermcap and compiled but got the following error  
"usr/include/string.h:292 error syntax error before ‘const’

Can anyone help resolve these problems especially the asterisk compile problem?

To summarize, I have obtained zaptel, libpri, asterisk, bison, libtermcap, newt, ncurses but could not find libtermcap-devel, newt-devel, ncurses-devel. Do I need all these source codes?

I will appreciate any help.

Deq

---

<div class="post-metadata">

**Author:** ![deq](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@deq](https://community.asterisk.org/u/deq)\
**Post date:** [June 11, 2007, 3:12pm UTC](https://community.asterisk.org/t/problem-with-make-in-asterisk/14927/2 "2007-06-11T15:12:28Z")

</div>

I found a solution to my dilemma. Thanks to a tutorial on the following link:  
[asteriskguru.com/tutorials/a … ebian.html](http://www.asteriskguru.com/tutorials/asterisk_installation_compilation_debian.html)

To resolve the error: “termcap support not found”, do:  
apt-get install libncurses5-dev

😃
