| | 1 | = Making debian package = |
| | 2 | If you need only shortest path functionality, you can make pgRouting-core Debian package. |
| | 3 | |
| | 4 | == 1. Install required packages == |
| | 5 | {{{ |
| | 6 | sudo apt-get install build-essential subversion cmake debhelper fakeroot |
| | 7 | sudo apt-get install libboost-graph-dev |
| | 8 | sudo apt-get install postgresql-8.2-postgis postgresql-server-dev-8.2 |
| | 9 | }}} |
| | 10 | |
| | 11 | == 2. Making package == |
| | 12 | Currently debian files are included in only trunk. |
| | 13 | {{{ |
| | 14 | svn checkout http://pgrouting.postlbs.org/svn/pgrouting/trunk pgrouting |
| | 15 | |
| | 16 | cd pgrouting/ |
| | 17 | dpkg-buildpackage -b -rfakeroot -uc -us |
| | 18 | }}} |
| | 19 | |
| | 20 | -uc and -us option means to unsign package, |
| | 21 | it is ok if you need not distribute package. |
| | 22 | |
| | 23 | == 3. Create routing database == |
| | 24 | {{{ |
| | 25 | createdb -U postgres routing |
| | 26 | createlang -U postgres plpgsql routing |
| | 27 | |
| | 28 | # Add PostGIS functions |
| | 29 | psql -U postgres -f /usr/share/postgresql-8.2-postgis/lwpostgis.sql routing |
| | 30 | psql -U postgres -f /usr/share/postgresql-8.2-postgis/spatial_ref_sys.sql routing |
| | 31 | |
| | 32 | # Add pgRouting functions |
| | 33 | psql -U postgres -f /usr/share/postlbs/routing_core.sql routing |
| | 34 | psql -U postgres -f /usr/share/postlbs/routing_core_wrappers.sql routing |
| | 35 | }}} |