Navigation


source: freeDiameter/INSTALL.Ubuntu @ 707:e387d5c6b6f5

Revision 707:e387d5c6b6f5, 3.7 KB checked in by Sebastien Decugis <sdecugis@nict.go.jp>, 16 months ago (diff)

Added support for Internationalized Domain Names (IDNA) using GNU libidn

Line 
1See http://www.freediameter.net/trac/wiki/DebRepository for instructions on how to
2install freeDiameter from existing package.
3
4See INSTALL file for general instructions on building freeDiameter from sources.
5
6The remaining of this file contains specific instructions for building the freeDiameter
7package files for Debian and Ubuntu systems.
8
9
10
11
12freeDiameter is shipped with the necessary files to generate the Debian package.
13All related files are in the directory "contrib/debian" of the distribution.
14As a first step, you have to link this directory from your top-level dir:
15  ln -s contrib/debian
16 
17============================================
18
19The following packages are required to compile freeDiameter from source:
20 cmake make gcc flex bison libsctp1 libsctp-dev libgnutls-dev libgcrypt-dev libidn11-dev
21 
22(note that libidn and libsctp can be avoided by defining DISABLE_SCTP and DIAMID_IDNA_REJECT)
23 
24Additionnaly, these ones may be useful:
25 mercurial gdb
26 
27Extensions additional dependencies:
28 app_acct:
29        libpq-dev
30
31 app_sip:
32 app_diameap:
33        libmysqlclient-dev
34       
35 dict_legacy_xml:
36        libxml2-dev
37       
38 dbg_interactive:
39        swig python-dev
40       
41============================================
42
43If your debhelper environment is recent (> 7.3.9 for cmake support),
44the following commands should generate the freeDiameter packages for you:
45
46# Install the dependencies for building the source:
47sudo apt-get -y install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libidn11-dev ssl-cert debhelper fakeroot \
48   libpq-dev libmysqlclient-dev libxml2-dev swig python-dev
49
50# Retrieve the latest version of the source package
51cd
52hg clone http://www.freediameter.net/hg/freeDiameter
53cd freeDiameter
54
55# Prepare for Debian package
56ln -s contrib/debian
57
58# Build the packages
59fakeroot dh binary
60
61# Install the packages
62cd ..
63sudo dpkg -i *.deb
64
65
66# The following lines may help you getting started.... (execute as root)
67ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/certs/freeDiameter.pem
68ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/private/freeDiameter.key
69zcat /usr/share/doc/freediameter-daemon/examples/freediameter.conf.sample.gz > /etc/freeDiameter/freeDiameter.conf
70echo "Identity=\"localhost.localdomain\";" >> /etc/freeDiameter/freeDiameter.conf
71freeDiameterd
72
73===========================================
74
75freeDiameter has been tested on the following distributions (compiled from source as described bellow):
76Ubuntu Intrepid, Jaunty, Karmic, Lucid, Maverick, Natty.
77Debian Lenny (with small patch, see ticket #24).
78
79Ubuntu Hardy support is known to be broken.
80
81The Debian package has been generated with success on Debian (>=Squeeze) and Ubuntu (>=Karmic).
82
83
84===========================================-
85Step by step instructions without using the debhelper tools:
86
871) Install all packages dependencies
88# sudo apt-get install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libidn11-dev
89
902) (OPTION) If you will compile modules that require postgresql, also install:
91# sudo apt-get install libpq-dev
92   and for mysql:
93# sudo apt-get install libmysqlclient-dev
94
953) (OPTION) If you want a more user-friendly interface, install this:
96# sudo apt-get install cmake-curses-gui
97
984) Retrieve the source files
99# hg clone http://www.freediameter.net/hg/freeDiameter
100
1015) Create a build directory, and enter it
102# mkdir fDbuild
103# cd fDbuild
104
1056) Configure and generate the Makefiles
106# cmake ../freeDiameter
107# make edit_cache
108
1097) Compile all files:
110# make
111
1128) (OPTION) See available targets:
113# make help
114
1159) (OPTION) Check the software has a correct basic behavior on your environment. -- only if you did not disable the tests in step 6
116# make test
117
11810) Install the software in configured locations:
119# sudo make install
120
121
122===========================================
123
Note: See TracBrowser for help on using the repository browser.