Bug#630895: osm2pgsql: Incorrect postgres port
Martin Krüger
martin.krueger at gmx.com
Sat Jun 18 14:39:36 UTC 2011
Package: osm2pgsql
Version: 0.70.5+r25090-2
Severity: minor
The postgres 8.4 server from the Debian-Insallation ist waiting for connections on port 5433.
osm2pgsql tries to connect on port 5432 and fails.
Wrote a little patch which solves the problem for me:
diff -pur osm2pgsql-0.70.5+r25090.b/osm2pgsql.c osm2pgsql-0.70.5+r25090/osm2pgsql.c
--- osm2pgsql-0.70.5+r25090.b/osm2pgsql.c 2011-01-16 19:15:42.000000000 +0100
+++ osm2pgsql-0.70.5+r25090/osm2pgsql.c 2011-06-18 15:54:58.745699142 +0200
@@ -307,7 +307,7 @@ int main(int argc, char *argv[])
const char *username=NULL;
const char *host=NULL;
const char *password=NULL;
- const char *port = "5432";
+ const char *port = "5433";
const char *tblsindex = "pg_default"; // default TABLESPACE for index
const char *conninfo = NULL;
const char *prefix = "planet_osm";
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-2-amd64 (SMP w/6 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages osm2pgsql depends on:
ii libbz2-1.0 1.0.5-6 high-quality block-sorting file co
ii libc6 2.13-4 Embedded GNU C Library: Shared lib
ii libgcc1 1:4.6.0-10 GCC support library
ii libgeos-3.2.2 3.2.2-2 Geometry engine for Geographic Inf
ii libpq5 9.0.4-1+b1 PostgreSQL C client library
ii libproj0 4.7.0-1 Cartographic projection library
ii libprotobuf-c0 0.14-1+b1 Protocol Buffers C library
ii libstdc++6 4.6.0-10 The GNU Standard C++ Library v3
ii libxml2 2.7.8.dfsg-3 GNOME XML library
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages osm2pgsql recommends:
ii postgis 1.5.2-1 geographic objects support for Pos
ii postgresql-8.4-postgis 1.5.2-1 geographic objects support for Pos
Versions of packages osm2pgsql suggests:
pn gosmore <none> (no description available)
ii josm 0.0.svn4064-2 Editor for OpenStreetMap
-- no debconf information
More information about the Pkg-grass-devel
mailing list