From the previous "Basic Information" tutorial, you should now have the source code for Asterisk. To continue with the general installation, we need to compile these sources to create the binaries.
Compiling Asterisk on most Linux distributions
Accomplish this by opening the folder in which the source codes were extracted (if you are using tarball files), or go to the /usr/src/asterisk folder (if using CVS server) to get the required packages.
To go to this directory, see example:
#cd /usr/src/asterisk
Once here, the final step is to compile:
Important: Follow this installation order: libpri, zaptel, asterisk