| | 19 | |
| | 20 | === Compiling OpenBSC with [E]GPRS === |
| | 21 | |
| | 22 | The guide below was tested on Ubuntu 11.10 but should work on Debian as well. This guide uses /root for everything. |
| | 23 | |
| | 24 | First you need to download all dependencies: |
| | 25 | |
| | 26 | {{{ |
| | 27 | apt-get install libdbi0-dev libdbd-sqlite3 libtool autoconf git-core pkg-config make libortp-dev |
| | 28 | }}} |
| | 29 | |
| | 30 | Next, download the OpenGGSN source code: |
| | 31 | {{{ |
| | 32 | cd /root |
| | 33 | git clone git://git.osmocom.org/openggsn.git |
| | 34 | }}} |
| | 35 | |
| | 36 | Compile OpenGGSN: |
| | 37 | {{{ |
| | 38 | cd /root/openggsn |
| | 39 | autoreconf; automake --add-missing; autoreconf; autoconf; automake; ./configure --prefix=/usr/local; make -j 2; make install |
| | 40 | }}} |
| | 41 | |
| | 42 | Now download everything else: |
| | 43 | {{{ |
| | 44 | cd /root |
| | 45 | git clone git://git.osmocom.org/libosmocore.git; git clone git://git.osmocom.org/libosmo-abis.git; git clone git://git.osmocom.org/openbsc.git |
| | 46 | }}} |
| | 47 | |
| | 48 | Compile the rest: |
| | 49 | {{{ |
| | 50 | cd /root/libosmocore; autoreconf -fi; ./configure; make; make install; ldconfig |
| | 51 | cd /root/libosmo-abis; autoreconf -fi; ./configure; make; make install; ldconfig |
| | 52 | cd /root/openbsc/openbsc; autoreconf -fi; export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig; ./configure; make |
| | 53 | }}} |
| | 54 | |
| | 55 | You should now have a working copy of ggsn, osmo-sgsn and osmo-nitb on your machine. |