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

Hi All, I have been trying to setup osm on centos 7. I have been following this site https://github.com/lijenpan/osm/blob/master/osm-centos7.md. Most of the steps like installing postgres, boost c++ library I did had issue I managed to resolve them too. I am stucked at here git clone git://github.com/mapnik/mapnik

> cd maplink ./configure I got the
> following errors. ./configure scons:
> Reading SConscript files ...

Welcome to Mapnik...

Configuring build environment...
Configuring on Linux in *release mode*...
CXX c++ (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Checking for freetype-config... yes
Checking for dlfcn.h support ... no
Checking if compiler (c++) supports -std=c++14 flag... (cached) no
C++ compiler does not support C++14 standard (-std=c++14), which is required. Please upgrade your compiler
[root@localhost mapnik]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-11)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Then I google and manually download the latest release candidate and ran the ./configure command but I end up with different set of errors.

Could not find required header files for boost python Checking for pkg-config... yes Checking for pycairo... yes

Exiting... the following required dependencies were not found: - ltdl (GNU Libtool | more info: http://www.gnu.org/software/libtool) - boost version >=1.47 (more info see: https://github.com/mapnik/mapnik/wiki//MapnikInstallation & http://www.boost.org) - boost system (more info see: https://github.com/mapnik/mapnik/wiki//MapnikInstallation & http://www.boost.org) - boost filesystem (more info see: https://github.com/mapnik/mapnik/wiki//MapnikInstallation & http://www.boost.org) - boost regex (more info see: https://github.com/mapnik/mapnik/wiki//MapnikInstallation & http://www.boost.org) - boost thread (more info see: https://github.com/mapnik/mapnik/wiki//MapnikInstallation & http://www.boost.org) - boost python (more info see: https://github.com/mapnik/mapnik/wiki//MapnikInstallation & http://www.boost.org)

See '/usr/local/mapnik-v2.1.0rc2/config.log' for details on possible problems.

I tried to run yum install libtool-ltdl but it says already installed.

asked 05 Jun '17, 19:30

newbie14's gravatar image

newbie14
319912
accept rate: 0%

1

Similar issue: https://github.com/mapnik/mapnik/issues/3591 . You need to update your compiler. Maybe there are third-party gcc packages with newer versions for CentOS available?

(06 Jun '17, 09:00) scai ♦
1
(06 Jun '17, 09:08) SomeoneElse ♦

@scai I have run yum update yet the same what else should I do with the gcc?

(06 Jun '17, 15:18) newbie14

It sounds like you have a couple of options on Centos:

  1. Ask someone who's familiar with Centos how to install gcc 6 (and manually set clang if necessary, as per https://github.com/mapnik/mapnik/issues/3591#issuecomment-299469997 ) and try that.
  2. Try an earlier version of mapnik, and use a map style that doesn't depend on very recent mapnik features. "OSM Bright" in the "lijenpan" instructions will likely work with an earlier mapnik.
permanent link

answered 06 Jun '17, 15:42

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

1

I found a better link as most steps in here works http://qiita.com/nkmrtkhd/items/642ae1b8a996cc46d85c

(06 Jun '17, 20:38) newbie14
1

OK, so that's using the 2.3 branch of Mapnik and osm-bright.

(06 Jun '17, 21:00) 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:

×341

question asked: 05 Jun '17, 19:30

question was seen: 5,555 times

last updated: 06 Jun '17, 21:00

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