Compiling Asterisk: Linode Cloud Hosting
Compiling Asterisk: Linode Cloud Hosting
Compiling Asterisk: Linode Cloud Hosting
Once you’ve compiled and installed the zaptel and libpri packages (if you
need them), you can move on to Asterisk. This section walks you through
a standard installation and introduces some of the alternative make
arguments that you may find useful.
Linode Standard Installation
Cloud
Asterisk is compiled with gcc through the use of the GNU make program.
Hosting To get started compiling Asterisk, simply run the following commands
(replace version with your version of Asterisk):
# cd /usr/src/asterisk-version
# make clean
# ./configure
# make menuselect
# make install
# make samples
Root Access,
1GB RAM for
Be aware that compile times will vary between systems. On a current-
Only $5/month! generation processor, you shouldn’t need to wait more than five minutes.
7 Day Money At AstriCon (http://www.astricon.net), someone reported successfully
Back compiling Asterisk on a 133 MHz Pentium, but it took approximately five
Guarantee. hours. You do the math.
Run the make samples command to install the default configuration files.
Installing these files (instead of configuring each file manually) will allow
you to get your Asterisk system up and running much faster. Many of the
default values are fine for Asterisk. Files that require editing will be
explained in future chapters.
make clean
The make clean command is used to remove the compiled binaries from
within the source directory. This command should be run before you
attempt to recompile or, if space is an issue, if you would like to clean up
the files.
make distclean
make update
The make update command is used to update the existing code from the
Digium SVN server. If you downloaded the source code from the FTP
server, you will receive a notice stating so.
make webvmail
When you run the make webvmail command, the Asterisk Web Voicemail
script will be placed into the cgi-bin/ directory of your HTTP daemon. If
you have specific policies with respect to security, be aware that it uses a
setuid root Perl script. This command will install only on a CentOS or
Fedora box, as other distributions may have different paths to their cgi-
bin/ directories. (This, of course, can be changed by editing the
HTTP_CFGDIR variable in the Makefile at line 133 at the time of this
writing.)
make progdocs
The make progdocs command will create documentation using the doxygen
software from comments placed within the source code by the developers.
You must have the appropriate doxygen software installed on your system
in order for this to work. Note that doxygen assumes that the source code
is well documented, which, sadly, is not always the case, although much
work was published since the first edition of this book! The information
contained within the doxygen system will be useful only to developers.
make config
The make config command will install Red Hat-style initialization scripts,
if the /etc/rc.d/init.d or /etc/init.d directories are found to exist. If they do
exist, the scripts are installed with file permissions equal to 755. If the
script detects that /etc/rc.d/init.d/ exists, the chkconfig --add asterisk
command will also be run to cause Asterisk to be started automatically at
boot time. This is not the case, however, with distributions that only use
the /etc/init.d/ directory. Running make config will not do anything to an
already running Asterisk process, or start one if it’s not running.
[47] Gentoodoesn’t actually use a precompiled binary, but rather pulls the
source from a repository, and builds and installs the software using its own
package management system. But the version you get is still dependant
upon the maintainers packaging it for you, when you could simply build it
yourself!
[48] l33tis a funny way of saying “elite,” known as leetspeak (computer
slang). Even more funny is a well-written, serious article by Microsoft
about leetspeak at
http://www.microsoft.com/athome/security/children/leetspeak.mspx.
You are reading Asterisk: The Future of Telephony (2nd Edition for Asterisk 1.4), by Jim van
Meggelen, Jared Smith, and Leif Madsen.
This work is licensed under the Creative Commons Attribution-Noncommercial-No
Derivative Works License v3.0.
To submit comments, corrections, or other contributions to the text, please visit
http://www.oreilly.com/.