This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Building Osm2pgsql on Fedora

0

I've been following the directions located here, but when I run "./configure" I get this at the bottom:

checking for xml2-config... /usr/bin/xml2-config
checking for xml2 libraries... yes
checking for zlib headers in /user/include... not found
checking for zlib compression library not found

I then tried to install zlib, but it was already installed. I reinstalled zlib and I still get the same error. What am I doing wrong?

asked 14 Oct '11, 15:27

NDFobia1158's gravatar image

NDFobia1158
61447
accept rate: 0%

checking for zlib headers in /user/include... not found

If you have really copied-pasted that, I think something is wrong about the path "/user/include" for searching the headers…

(14 Oct '11, 16:40) NicolasDumoulin

2 Answers:

1

I don't know fedora package naming, but I think you have to install something like zlib-dev in order to have headers.

answered 14 Oct '11, 16:06

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

I just tried doing that and I apparently already have that installed as well. I just reinstalled it and I am still getting the same result.

(14 Oct '11, 16:12) NDFobia1158
2

I suppose you have installed the packages list given on the wiki?

yum install geos-devel proj-devel postgresql-devel libxml2-devel bzip2-devel gcc-c++ protobuf-c-devel autoconf automake libtool

(14 Oct '11, 16:33) NicolasDumoulin

I guess I overlooked that step. After installing what wasn't already installed from that list, I got it working. Thanks.

(14 Oct '11, 17:10) NDFobia1158

So you can close this question. Thanks.

(15 Oct '11, 20:21) NicolasDumoulin

0

checking for zlib headers in /user/include... not found

If you have really copied-pasted that, I think something is wrong about the path "/user/include" for searching the headers…

answered 14 Oct '11, 16:40

NicolasDumoulin's gravatar image

NicolasDumoulin
3.3k42256
accept rate: 13%

Source code available on GitHub .