Mercurial > hg > freeDiameter
annotate INSTALL.Ubuntu @ 320:53f912ce0f4e
Add shared object version information
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Wed, 19 May 2010 15:09:27 +0900 |
parents | 91f2f9531c47 |
children | 5133b45e3305 |
rev | line source |
---|---|
234 | 1 See INSTALL file for general instructions on building freeDiameter. |
2 | |
3 On Ubuntu / Debian, the following packages are required (aptitude install ...): | |
4 cmake make gcc flex bison libsctp1 libsctp-dev libgnutls-dev libgcrypt-dev | |
5 | |
6 Additionnaly, these ones may be useful: | |
7 mercurial gdb | |
290
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
8 |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
9 In order to build app_acct extension, you will also need the package libpq-dev. |
234 | 10 |
290
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
11 Tested not working: Ubuntu Hardy (too old). |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
12 Tested working: Ubuntu Intrepid, Jaunty, Karmic, Lucid. Debian Lenny. |
298
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
13 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
14 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
15 ===========================================- |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
16 Step by step instructions (with no prerequisite): |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
17 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
18 1) Install all packages dependencies |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
19 # apt-get install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
20 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
21 2) (OPTION) If you will compile modules that require postgresql, also install: |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
22 # apt-get install libpq-dev |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
23 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
24 3) (OPTION) If you want a more user-friendly interface, install this: |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
25 # apt-get install cmake-curses-gui |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
26 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
27 4) Retrieve the source files |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
28 # hg clone http://aaa.koganei.wide.ad.jp/hg/freeDiameter |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
29 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
30 5) Create a build directory, and enter it |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
31 # mkdir fDbuild |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
32 # cd fDbuild |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
33 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
34 6) Configure and generate the Makefiles |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
35 a) If you did not install ccmake in step 3: |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
36 # cmake ../freeDiameter |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
37 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
38 b) If you did install ccmake: |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
39 # ccmake ../freeDiameter |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
40 - press 'c' (configure) |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
41 - toggle the values as needed (ex: BUILD_APP_RADGW=ON, ...) |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
42 - press 'c' again. New items may appear, iterate the process |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
43 - press 'c' and 'g' to complete the process |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
44 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
45 7) Compile all files: |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
46 # make |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
47 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
48 8) See available targets: |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
49 # make help |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
50 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
51 9) (OPTION) Check the software has a correct basic behavior on your environment. -- only if you did not disable the tests in step 6 |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
52 # make test |
57b671bc5e8d
Added detailed instructions for Ubuntu
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
53 |
304
ad3c46016584
Added install directives for cmake; also allow default directory to seek for extensions and configuration files
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
298
diff
changeset
|
54 |
311
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
55 =========================================== |
315
2725e68bc78d
Tweak init.d scripts
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
56 |
320
53f912ce0f4e
Add shared object version information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
319
diff
changeset
|
57 # You can alternatively do: |
315
2725e68bc78d
Tweak init.d scripts
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
58 apt-get -y install mercurial cmake make gcc bison flex libsctp-dev libgnutls-dev libgcrypt-dev libpq-dev ssl-cert debhelper |
311
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
59 cd /usr/src |
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
60 hg clone http://aaa.koganei.wide.ad.jp/hg/freeDiameter |
315
2725e68bc78d
Tweak init.d scripts
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
61 cd freeDiameter |
2725e68bc78d
Tweak init.d scripts
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
62 dh binary |
2725e68bc78d
Tweak init.d scripts
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
63 |
319
91f2f9531c47
Update Ubuntu building instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
315
diff
changeset
|
64 cd .. |
91f2f9531c47
Update Ubuntu building instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
315
diff
changeset
|
65 dpkg -i *.deb |
315
2725e68bc78d
Tweak init.d scripts
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
313
diff
changeset
|
66 |
311
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
67 ln -s /etc/ssl/certs/ssl-cert-snakeoil.pem /etc/ssl/certs/freeDiameter.pem |
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
68 ln -s /etc/ssl/private/ssl-cert-snakeoil.key /etc/ssl/private/freeDiameter.key |
319
91f2f9531c47
Update Ubuntu building instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
315
diff
changeset
|
69 zcat /usr/share/doc/freediameter-daemon/examples/freediameter.conf.sample.gz > /etc/freeDiameter/freeDiameter.conf |
311
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
70 echo "Identity=\"localhost.localdomain\";" >> /etc/freeDiameter/freeDiameter.conf |
a45bcbbeac8b
Added ready-to-copy instructions
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
304
diff
changeset
|
71 freeDiameterd |