Mercurial > hg > freeDiameter
annotate INSTALL.FreeBSD @ 351:0aa95dd79d0f
Fix erroneous quote sign
author | Sebastien Decugis <sdecugis@nict.go.jp> |
---|---|
date | Tue, 29 Jun 2010 17:10:52 +0900 |
parents | 603791d2dcc4 |
children | 1f4aa49b26e4 |
rev | line source |
---|---|
234 | 1 See INSTALL file for general instructions on building freeDiameter. |
2 | |
3 ------------------ | |
4 QUICK INSTRUCTIONS | |
5 ------------------ | |
6 | |
7 On FreeBSD-8.0 the following packages were required (should be same on FreeBSD-7.x): | |
8 cmake flex bison gnutls | |
9 | |
10 Then the cmake command had to look like: | |
11 cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ... | |
12 | |
13 | |
14 --------------------- | |
15 COMPLETE INSTRUCTIONS | |
16 --------------------- | |
17 | |
18 1) If you don't have freeBSD yet: | |
19 Install minimal system + ports using initial installer /usr/sbin/sysinstall | |
20 | |
21 | |
22 2) Install cmake | |
23 | |
24 a) from sources: | |
25 # cd /usr/ports/devel/cmake | |
26 # make install | |
27 | |
28 b) from package (don't forget to set your PACKAGEROOT appropriately: set PACKAGEROOT=ftp://ftp.jp.freebsd.org): | |
29 # pkg_add -v -r cmake | |
30 | |
31 | |
32 3) Install mercurial (optional) | |
33 (replace "cmake" by "mercurial" in the previous command) | |
34 | |
238
62eaf631eb61
Fix compilation issue when gnutls is not in standard directory
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
35 4) Install flex and bison, same way. |
234 | 36 |
37 5) Retrieve freeDiameter source code: | |
38 # cd ~ | |
335
603791d2dcc4
Updated website information
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
323
diff
changeset
|
39 # /usr/local/bin/hg clone http://www.freediameter.net/hg/freeDiameter/ |
234 | 40 |
41 6) Make a build directory | |
42 # mkdir fD-build | |
43 # cd fD-build | |
44 | |
45 7) Run cmake for freeDiameter (add other flags as you see fit, see INSTALL for more details) | |
238
62eaf631eb61
Fix compilation issue when gnutls is not in standard directory
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
46 # /usr/local/bin/cmake -DFLEX_EXECUTABLE:FILEPATH=/usr/local/bin/flex ../freeDiameter |
234 | 47 |
323
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
48 8) Compile, optionnaly test |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
49 # make |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
50 # make test |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
51 |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
52 9) Install |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
53 # make install |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
54 |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
55 10) Run (the install path can be changed in cmake step): |
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
56 # /usr/local/bin/freeDiameterd --help |
238
62eaf631eb61
Fix compilation issue when gnutls is not in standard directory
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
234
diff
changeset
|
57 |
239
aba4342b5916
Update status on freeBSD -- still, not running well
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
238
diff
changeset
|
58 |
290
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
59 ------------------------------ |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
60 app_acct test ADDITIONAL STEPS |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
61 ------------------------------ |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
62 Here is additional steps in order to run the test for app_acct |
239
aba4342b5916
Update status on freeBSD -- still, not running well
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
238
diff
changeset
|
63 |
290
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
64 1) Install the required packages |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
65 # pkg_add -v -r postgresql84-client |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
66 # pkg_add -v -r postgresql84-server |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
67 |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
68 2) Prepare access to the database: |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
69 # echo postgresql_enable=YES >> /etc/rc.conf |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
70 # /usr/local/etc/rc.d/postgresql initdb |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
71 # su - pgsql |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
72 > /usr/local/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
73 > /usr/local/bin/createuser root |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
74 Shall the new user be allowed to create databases? (y/n) y |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
75 > logout |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
76 # /usr/local/bin/createdb root |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
77 # /usr/local/bin/psql root |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
78 root=# CREATE TABLE incoming_test ( |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
79 root(# recorded_on timestamp with time zone NOT NULL, |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
80 root(# "Accounting-Record-Type" integer, |
351
0aa95dd79d0f
Fix erroneous quote sign
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
335
diff
changeset
|
81 root(# "Session-Id" bytea, |
290
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
82 root(# "Accounting-Record-Number" integer, |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
83 root(# "Route-Record1" bytea, |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
84 root(# "Route-Record2" bytea, |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
85 root(# "Route-Record3" bytea, |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
86 root(# "Route-Record4" bytea ); |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
87 root=# \q |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
88 |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
89 3) configure the sources |
323
f34646a91dbc
Updated FreeBSD notes
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
290
diff
changeset
|
90 # make edit_cache |
290
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
91 BUILD_APP_ACCT:BOOL=ON |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
92 TEST_APP_ACCT:BOOL=ON |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
93 TEST_APP_ACCT_CONNINFO:STRING="user=root dbname=root" |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
94 |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
95 4) run the test |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
96 # freeDiameter/tests/testappacct -d |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
97 or |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
98 # make test |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
99 |
7842bed901ca
Updated documentation
Sebastien Decugis <sdecugis@nict.go.jp>
parents:
249
diff
changeset
|
100 |