Comments (7)
I've disabled the offending macros for now.
Looks like the m4 version on centos is too old for the ax_cflags_warn_all macro. Interestingly, the version of the macro that ships with centos causes the same error.
from osm2pgsql.
7a09ca3 introduced this regression. 0cb6bc9 is the last good version. At 7a09ca3, the code was moved to ANSI C standard.
from osm2pgsql.
thank you for reply. i run the script under fedora 17 and after that i configured and compiled under centos where i needed it without any problem.
from osm2pgsql.
Hi, I'm installing osm2gsql on centos 6.6 and I have this same problem, how can I fix it? I disabled WARN_ALL macros according to hholzgra@f710045 but did not work.
Thanks.
from osm2pgsql.
Hi, I'm installing osm2gsql on centos 6.6 and I have this same problem, how can I fix it?
Try doing git clean -xfd
and disabling the warning macros. If that doesn't fix it, build your own autotools and/or m4, do git clean and instead of running autogen.sh
, run each command in it individually, making sure to use the new versions.
Once you get autogen.sh working, you will run into problems with a few default versions of requirements that come with Centos 6.
- You need a C++11 compiler. Centos 6 pre-dates C++11, so you'll need an appropriate version of GCC (4.8) or clang (3.4).
- The version of Boost on Centos is similarly ancient
- The version of GEOS included will probably compile, but may produce more errors than a recent version
- If you're running the database server on Centos, you should probably build your on PostgreSQL + PostGIS, as I believe the versions of both that come with Centos 6 are end of life
- The Protocol Buffers version is probably too old too
Something called "devtoolset-2" may help with some components.
If using a RPM based distribution, I strongly recommend Fedora, or if you need Centos, Centos 7 might be recent enough to avoid some of this work.
If you must use Centos 6, it is possible to compile recent versions of what you need, and osm2pgsql should work then. This is actually not much additional burden, because if you're using Centos you will need to do this anyways for the dependencies of virtually every other component of a tile rendering server.
from osm2pgsql.
You might also find 0.86.0 easier to work with as its the old C version.
from osm2pgsql.
Thanks pnorman for your help, it was so helpful. I followed your advise and then I can ran autogen.sh without warnings or error.
Thanks a lot.
from osm2pgsql.
Related Issues (20)
- Allow more than 32 generalization jobs HOT 2
- Chunky rivers when generalizing water areas HOT 2
- Question: could not extend file "base/361191441/368615606.137": No space left on device
- osm2pgsql should not perform analyze by itself HOT 15
- `object:as_multipolygon()` does not take `object.members` into account. HOT 2
- Some research on middle performance HOT 4
- highway=rest_area treatet as line HOT 2
- free(): invalid size Aborted Core dumped HOT 4
- North America import fails HOT 1
- nlohmann-json is missing from the Alpine build dependencies command
- Error in reprocessing of ways in relation, if osmc_symbols-tag of the relation contains the word 'backslash' HOT 6
- Deprecating -i,--tablespace-index? HOT 5
- Out of bounds tile coordinates produced HOT 3
- as_linestring() and likely other geometry transform functions can only be called from the process_way() function, not custom functions. HOT 5
- When Planet osm data import, way showing 0 and not started HOT 6
- osm2pgsql using too much memory for expire lists HOT 14
- Windows CI broken HOT 2
- cmake on ubuntu 22.04-lts requires libboost-dev, libboost-system-dev, libboost-filesystem-dev to be installed HOT 2
- Replication breakage
- Run update in transaction
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from osm2pgsql.