contrib:pgrouting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
contrib:pgrouting [2011/09/06 11:12] – [PG routing installation] mainnerebner | contrib:pgrouting [2019/01/16 10:03] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 6: | Line 6: | ||
Environment: | Environment: | ||
< | < | ||
- | .....@bz10m:/ | + | $ lsb_release -a |
No LSB modules are available. | No LSB modules are available. | ||
Distributor ID: Ubuntu | Distributor ID: Ubuntu | ||
Line 13: | Line 13: | ||
Codename: | Codename: | ||
</ | </ | ||
- | + | ===== Install | |
- | Note: | + | |
- | Install required packages | + | |
- | + | ||
- | ===== Install | + | |
< | < | ||
sudo apt-get install build-essential git-core cmake | sudo apt-get install build-essential git-core cmake | ||
- | sudo apt-get install postgresql-8.4-postgis postgresql-server-dev-8.4 | + | sudo apt-get install |
</ | </ | ||
Line 37: | Line 33: | ||
**For TSP** | **For TSP** | ||
< | < | ||
- | wget http:// | + | wget http:// |
tar -xzf gaul-devel-0.1850-0.tar.gz | tar -xzf gaul-devel-0.1850-0.tar.gz | ||
cd gaul-devel-0.1850-0/ | cd gaul-devel-0.1850-0/ | ||
Line 59: | Line 55: | ||
Set local database connections to “trust” in “pg_hba.conf” to be able to work with PostgreSQL as user “postgres”. Then restart PostgreSQL. | Set local database connections to “trust” in “pg_hba.conf” to be able to work with PostgreSQL as user “postgres”. Then restart PostgreSQL. | ||
< | < | ||
- | sudo gedit / | + | sudo gedit / |
- | sudo / | + | sudo / |
+ | # TYPE DATABASE | ||
+ | local all | ||
+ | </ | ||
+ | |||
+ | ==== Start postgresql daemon ==== | ||
+ | <code bash> | ||
+ | sudo / | ||
</ | </ | ||
==== Create routing database ==== | ==== Create routing database ==== | ||
Line 70: | Line 73: | ||
| | ||
==== Add PostGIS functions ==== | ==== Add PostGIS functions ==== | ||
+ | 8.3: | ||
< | < | ||
psql -U postgres -f / | psql -U postgres -f / | ||
psql -U postgres -f / | psql -U postgres -f / | ||
+ | </ | ||
+ | 8.4: | ||
+ | < | ||
+ | psql -U postgres -f / | ||
+ | psql -U postgres -f / | ||
</ | </ | ||
| |
/data/www/wiki.inf.unibz.it/data/attic/contrib/pgrouting.1315300354.txt.gz · Last modified: 2019/01/16 10:03 (external edit)