Chapter 2. Installing the gateway
This chapter explains how the gateway can be installed, either from a source code package or by using a
pre-compiled binary version. The goal of this chapter is to get the gateway compiled and all the files in
the correct places; the next chapter will explain how the gateway is configured.
Getting the source code
The source code to Kannel is available for download at http://www.kannel.3glab.org/download.shtml. It
is available in various formats and you can choose to download either the latest release version or the
daily snapshot of the development source tree for the next release version, depending on whether you
want to use Kannel for production use or to participate in the development.
If you’re serious about development, you probably want to use CVS, the version control system used by
the Kannel project. This allows you to participate in Kannel development much more easily than by
downloading the current daily snapshot and integrating any changes you’ve made every day. CVS does
that for you. (See the Kannel web site for more information on how to use CVS.)
Finding the documentation
The documentation for Kannel consists of three parts:
1.
User’s Guide
, i.e., the one you’re reading at the moment.
2.
Architecture and Design
, in
doc/arch
or at http://www.kannel.3glab.org/arch.shtml
(http://www.kannel.3glab.org/arch.shtml)
3. The
README
and various other text files in the source tree.
We intend to cover everything you need to install and use Kannel is in
User’s Guide
, but the guide is still
incomplete in this respect. Similarly, the
Architecture and Design
document should tell you everything
you need to know to dive into the sources and quickly make your own modifications. It’s not a
replacement for actually reading the source code, but it should work as a map to the source code. The
README
is not supposed to be very important, nor contain much information. Instead, it will just point at
the other documentation.
You need the following tools to compile Kannel:
•
C compiler and libraries for ANSI C, with normal Unix extensions such as BSD sockets.
•
An implementation of POSIX threads (
pthread.h
).
•
GNU Bison 1.28, if you want to modify the WMLScript compiler (a pre-generated parser is included
for those who just want to compile Kannel).
•
DocBook processing tools: DocBook stylesheets, jade, jadetex, etc; see
README.docbook
for more
information (pre-formatted versions of the documentation are available, and you can compile Kannel
itself even without the documentation tools).
6