1st time installing asterisk : make doesn't work

I’m trying to install asterisk for my first time and i can’t execute the make.
I do :
download :
mkdir -p /usr/src/asterisk
cd /usr/src/asterisk
wget downloads.asterisk.org/pub/telep … ent.tar.gz
wget downloads.asterisk.org/pub/telep … ent.tar.gz
wget downloads.asterisk.org/pub/telep … ent.tar.gz
wget soft-switch.org/downloads/spands … -0.0.5.tgz
wget downloads.digium.com/pub/libpri/ … ent.tar.gz
tar -zxf dahdi-linux-complete-current.tar.gz
tar -zxf asterisk-1.6.2-current.tar.gz
tar -zxf spandsp-0.0.5.tgz
tar -zxf libpri-1.4-current.tar.gz
tar -zxf asterisk-addons-1.6.2-current.tar.gz

SpanDSP (optional)
cd /usr/src/asterisk/spandsp-0.0.5
make clean
make install
cat > /etc/ld.so.conf.d/spandsp.conf << EOF
ldconfig -v

cd /usr/src/asterisk/libpri-VERSION
make clean
make install

cd /usr/src/asterisk/dahdi-linux-complete-VERSION
make all
make install
make config
chkconfig dahdi on
service dahdi start

cd /usr/src/asterisk/asterisk-VERSION
make clean

And here my problem :

make menuselect

system response :
[root@localhost asterisk-]# make menuselect
make: -F. : commande introuvable
/bin/sh: - : invalid option
Usage: /bin/sh [GNU long option] [option] …
/bin/sh [GNU long option] [option] script-file …
GNU long options:
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option

**** The configure script must be executed before running ‘make’.
**** Please run “./configure”.

make: *** [makeopts] Erreur 1
[root@localhost asterisk-]#

Someone to help me ?

did the ./configure run without error?

NO error in my ./configure, just this :
configure: *** XML documentation will not be available because the ‘libxml2’ development package is missing.
configure: *** Please run the ‘configure’ script with the ‘–disable-xmldoc’ parameter option
configure: *** or install the ‘libxml2’ development package.

So I’ve installed the libxml2 devel and try again :
One error :
configure: error: *** termcap support not found (on modern systems, this typically means the ncurses development package is missing)
Installation of the ncurses devel package AND, YES IT’S OK, MAKE MENUSELECT WORK, for the next, i’ll see it soon.

One friend said me that the XML package wasn’t important … without your reply, i think that i’ll don’t search here.
Thanks sander4000

Try installing ncurses libraries as well. Since I’m using Debian, I’d only need to use apt to install it but looking through apt, I can see the package libncurses5-dev which is probably what you need.

Also, although the XML stuff isn’t needed, try running ./configure --disable-xmldoc as it suggents. Probably won’t make any difference, but you never know.