I have been trying to installed on centos 7 the osm map. I have followed this link http://qiita.com/nkmrtkhd/items/642ae1b8a996cc46d85c.
I tried to modify the last command and run this
osm2pgsql -c -d osm -U postgres -H localhost -S /usr/local/share/osm2pgsql/default.style malaysia-singapore-brunei-latest.osm.bz2
osm2pgsql version 0.93.0-dev (64 bit id space)
Using built-in tag processing pipeline
Using projection SRS 3857 (Spherical Mercator)
Osm2pgsql failed due to ERROR: Connection to database failed: FATAL: Ident authentication failed for user "postgres"
When I ran this command sudo -u postgres psql postgres
psql (9.6.3)
Type "help" for help.
This works perfectly.
asked
06 Jun '17, 20:22
newbie14
31●9●9●12
accept rate:
0%
I have resolved this using this method osm2pgsql --slim -S /usr/local/share/osm2pgsql/default.style -d gis -C 1000 malaysia-singapore-brunei-latest.osm.bz2. I just had to lower the cache size and it started to work.
Whilst I doubt that "authentication failed" would be fixed by changing the cache size, it's good that you've got this working!