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

Hi,

I have installed osm2pgsql with all required dependencies (according to http://wiki.openstreetmap.org/wiki/Osm2pgsql), but when reading a .pbf file, I'm getting this message:

ERROR: PBF support has not been compiled into this version of osm2pgsql, please either compile it with pbf support or use one of the other input formats

My version of osm2pgsql is 0.85.0, so I think it's supposed to read .pbf. Is there anything I can do about it?

EDIT: OK, already solved - I've made some reinstalls, I've also tried some older versions, so I don't know what exactly caused this issue, but now everything, works fine.

asked 04 Feb '14, 10:10

Speeder1612's gravatar image

Speeder1612
16222
accept rate: 0%

edited 04 Feb '14, 11:41

Hi can you tell me where did you get the older version of osm2pgsql? My osm2pgsql is 0.87.0 and it doesn't work either. Thank you!

(08 Dec '14, 01:06) studiousdavid

Have you read the part of the instructions where it says:

If you want PBF read support, you will also need libprotobuf-c0-dev and protobuf-c-compiler:
sudo apt-get install libprotobuf-c0-dev protobuf-c-compiler

osm2pgsql will compile if the protobuf dependencies are not met, and simply issue a warning that is overlooked easily. The result is an osm2pgsql binary without PBF support.

permanent link

answered 04 Feb '14, 10:23

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

Yes, I have - this is why I don't understand why it doesn't work.

(04 Feb '14, 10:33) Speeder1612
1

Then take a look at the output of ./configure which is run via the autogen.sh script.

(04 Feb '14, 11:02) scai ♦
Your answer
toggle preview

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
×60

question asked: 04 Feb '14, 10:10

question was seen: 8,346 times

last updated: 08 Dec '14, 01:06

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