NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

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's gravatar image

newbie14
319912
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.

(07 Jun '17, 03:51) newbie14

Whilst I doubt that "authentication failed" would be fixed by changing the cache size, it's good that you've got this working!

(08 Jun '17, 13:15) SomeoneElse ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×263

question asked: 06 Jun '17, 20:22

question was seen: 3,323 times

last updated: 08 Jun '17, 13:15

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum