Asterisk ( install problems in Ubuntu 9.10

I am a newbie !

Going thru installations steps …
Passing installation of libpri, dahdi but then …
When I come to the step to install Asterisk …

lennart@lennart-desktop:/usr/src/asterisk/asterisk-$ sudo make install
[sudo] password for lennart:
make: -F.: “Kommandot hittades inte” swedish for "command not found "…
/bin/sh: Illegal option -

You don’t have all the needed development tools installed.

At a command line do:

sudo apt-get install build-essential

You probably need a bunch of prerequisite packages too to build Asterisk on Ubuntu

Run these too. Type sudo -i 1st so you don’t have to sudo every command.

apt-get -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
apt-get -y install linux-headers-uname -r --force-yes
apt-get -y install make bison flex g++ gcc apache2 php5 php5-curl
apt-get -y install php5-cli php5-mysql php-pear php-db php5-gd curl
apt-get -y install sox libncurses5-dev libssl-dev libmysqlclient15-dev
apt-get -y install mpg123
apt-get -y install libxml2 libxml2-dev

Thanks for your reply but the problem is still there after I did what you told me to do !?
Any more prerequisite packages you think I need ?

Did you run ./configure and make before make install??

Hi !

Sorry, I forgot to say thanks …it worked !