{"id":347,"date":"2017-09-19T15:31:10","date_gmt":"2017-09-19T13:31:10","guid":{"rendered":"https:\/\/kszyh.kisim.eu.org\/?p=347"},"modified":"2017-09-19T15:33:10","modified_gmt":"2017-09-19T13:33:10","slug":"mapnik-installation","status":"publish","type":"post","link":"https:\/\/kszyh.kisim.eu.org\/?p=347","title":{"rendered":"Mapnik Installation"},"content":{"rendered":"<p>This procedure should work across any Linux systems thank to bootstraping step. Compiler with C++14 capability is the only hard requirement. It will work with gcc &gt;= 6.<\/p>\n<p>PostgreSQL should be installed with GIS extensions (here as 9.6).<\/p>\n<p>In case RHEL or similar, you can install gcc 6.x from Software Collection repository:<\/p>\n<pre class=\"lang:default decode:true\">yum install devtoolset-6\r\nscl enable devtoolset-6 bash\r\n<\/pre>\n<p>After that clone and install mapnik:<\/p>\n<pre class=\"lang:default decode:true\">export CXX=\"\/opt\/rh\/devtoolset-6\/root\/usr\/bin\/g++\" &amp;&amp; export CC=\"\/opt\/rh\/devtoolset-6\/root\/usr\/bin\/gcc\"\r\nexport PATH=$PATH:\/usr\/pgsql-9.6\/bin:\/usr\/pgsql-9.6\/lib\r\ngit clone https:\/\/github.com\/mapnik\/mapnik mapnik-3.x --depth 10\r\ncd mapnik-3.x\r\ngit submodule update --init\r\nsource bootstrap.sh\r\n.\/configure --prefix=\/packages\/mapnik\/3.x CUSTOM_CXXFLAGS=\"-D_GLIBCXX_USE_CXX11_ABI=0\" CXX=${CXX} CC=${CC}\r\nmake -j4\r\nmake install\r\n<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This procedure should work across any Linux systems thank to bootstraping step. Compiler with C++14 capability is the only hard requirement. It will work with gcc &gt;= 6. PostgreSQL should be installed with GIS extensions (here as 9.6). In case RHEL or similar, you can install gcc 6.x from Software&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/kszyh.kisim.eu.org\/?p=347\"> Continue reading <span class=\"meta-nav\">&rarr; <\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[102,101],"class_list":["post-347","post","type-post","status-publish","format-standard","hentry","category-linux","tag-gis","tag-mapnik"],"_links":{"self":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=347"}],"version-history":[{"count":3,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions"}],"predecessor-version":[{"id":350,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=\/wp\/v2\/posts\/347\/revisions\/350"}],"wp:attachment":[{"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kszyh.kisim.eu.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}