Problem installing Asterisk

I am new to Asterisk as well as EC2. I am trying to install Asterisk
1.4.21 version in my Amazon EC2 terminal for learning purpose.
i have downloaded tarball packages:
Asterisk 1.4.21
Libpri 1.4.4
Zaptel 1.4.11

I extracted the tar balls successfully. Now i need to first install
the Zaptel.
./configure
make clean commands are running pretty well. But when i am trying to
run
make install
it says: “You do not appear to have the sources for the
2.6.21.7-2.fc8xen kernel installed.”

Then i tried to fix this with installing kernel-sources available
linux-source-2.6.22 but not working then i tried installing kernel-
headers available

  1. linux-headers-2.6.22-14-xen
  2. linux-headers-2.6.22-15-server
    but having no clue. The result is the same as before. Please help me
    fix this problem.
    Thanks in advance.

Regards,
Auro :frowning:

the running kernel and source must be the same so update all to the lastest and make sure you restart to run the latest version of the kernel.

i tried that with this command:

but it is saying:

what can i do now?

Make sure you have the latest as well as try installing the kernel dev package.

getting 2.6.21.7-2.fc8xen this version for i386 machine kernel-source is bit tough.

anyway thanks.