OpenBSC LCR Ubuntu1204 » History » Version 4
manatails, 02/19/2016 10:47 PM
fix commandline
1 | 1 | This is a brief installation guide for openBSC and LCR on Ubuntu 12.04 32Bit. |
|
---|---|---|---|
2 | |||
3 | {{{ |
||
4 | sudo apt-get install linux-source build-essential autoconf automake libtool libgsm1-dev libdbi-dev \ |
||
5 | libdbd-sqlite3 git-core asterisk asterisk-dev ncurses-base libncurses5-dev libncursesw5-dev \ |
||
6 | sqlite3 pkg-config libortp-dev |
||
7 | cd /usr/src |
||
8 | sudo tar xfj linux-source-3.2.0.tar.bz2 |
||
9 | |||
10 | cd /lib/modules/3.2.0-23-generic-pae/ |
||
11 | sudo ln -s /usr/src/linux-source-3.2.0 source |
||
12 | |||
13 | cd |
||
14 | mkdir GSM |
||
15 | cd GSM |
||
16 | |||
17 | git clone git://git.misdn.org/mISDN.git/ |
||
18 | git clone git://git.misdn.org/mISDNuser.git/ |
||
19 | git clone git://git.misdn.org/lcr.git/ |
||
20 | git clone git://git.osmocom.org/libosmo-abis.git |
||
21 | git clone git://git.osmocom.org/libosmocore.git |
||
22 | git clone git://git.osmocom.org/openbsc.git |
||
23 | |||
24 | cd mISDN |
||
25 | 3 | wget http://openbsc.osmocom.org/trac/raw-attachment/wiki/OpenBSC_LCR_Ubuntu12.04/mISDN.diff |
|
26 | 1 | patch -p1 < mISDN.diff |
|
27 | ./configure |
||
28 | cp mISDN.cfg.default standalone/mISDN.cfg |
||
29 | make modules |
||
30 | 4 | manatails | sudo make modules_install |
31 | 1 | ||
32 | cd ../mISDNuser |
||
33 | ./configure |
||
34 | make |
||
35 | sudo make install |
||
36 | |||
37 | cd ../libosmocore/ |
||
38 | autoreconf -i -f |
||
39 | ./configure |
||
40 | make |
||
41 | sudo make install |
||
42 | |||
43 | cd ../libosmo-abis/ |
||
44 | autoreconf -i -f |
||
45 | ./configure |
||
46 | make |
||
47 | sudo make install |
||
48 | |||
49 | cd ../openbsc/openbsc/ |
||
50 | autoreconf -i -f |
||
51 | ./configure |
||
52 | make |
||
53 | |||
54 | cd ../../lcr |
||
55 | ln -s ../libosmocore/ . |
||
56 | ln -s ../openbsc/openbsc/ . |
||
57 | sh autogen.sh |
||
58 | ./configure --prefix=/opt/lcr --with-asterisk --with-gsm-bs |
||
59 | make |
||
60 | sudo make install |
||
61 | sudo cp chan_lcr.so /usr/lib/asterisk/modules/ |
||
62 | |||
63 | sudo ldconfig |
||
64 | sudo depmod -a |
||
65 | }}} |