You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.
Reporter: middleforkgis [Submitted to the original trac issue database at 9.05am, Friday, 29th June 2012]
osm2pgsql SVN version 0.80.0 (64bit id space)
Various commenters (see for example #3505) have noted a failure to configure osm2pgsql, wherein the following error is displayed:
checking for xml2 libraries... yes
checking for zlib headers in /usr/include... not found
checking for zlib compression library... no
configure: error: required library not found
I have experienced the same [Debian, Wheezy AMD64] I believe I have isolated the problem.
configure:4327: checking for C++ compiler version
configure:4336: g++ --version >&5
./configure: line 4338: g++: command not found
configure:4347: $? = 127
configure:4336: g++ -v >&5
./configure: line 4338: g++: command not found
configure:4347: $? = 127
configure:4336: g++ -V >&5
./configure: line 4338: g++: command not found
configure:4347: $? = 127
configure:4336: g++ -qversion >&5
./configure: line 4338: g++: command not found
configure:4347: $? = 127
configure:4351: checking whether we are using the GNU C++ compiler
configure:4370: g++ -c conftest.cpp >&5
./configure: line 1634: g++: command not found
configure:4370: $? = 127
So I install g++
apt-get install g++
Re-run configure
checking for xml2 libraries... yes
checking for zlib headers in /usr/include... found
checking for zlib library... found
checking for zlib compression library... yes
Reporter: middleforkgis
[Submitted to the original trac issue database at 9.05am, Friday, 29th June 2012]
osm2pgsql SVN version 0.80.0 (64bit id space)
Various commenters (see for example #3505) have noted a failure to configure osm2pgsql, wherein the following error is displayed:
I have experienced the same [Debian, Wheezy AMD64] I believe I have isolated the problem.
Here is the proof that zlib.h is present:
Here is the relevant error in config.log:
So I install g++
Re-run configure
Configure concludes successfully as does make.
Conclusion: missing g++ erroneously indicates missing zlib.
Requested fix: test for g++ before testing for zlib and throw an error if g++ is not found.
The text was updated successfully, but these errors were encountered: