From e6ce66e3717c67339f7837e066bf7861e41a7971 Mon Sep 17 00:00:00 2001 From: knutole Date: Fri, 24 Oct 2014 10:09:58 -0700 Subject: [PATCH] i got install error with g++/cc-4.7 solution, but 4.8 is in repository now anyway. --- UbuntuInstallation.md | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/UbuntuInstallation.md b/UbuntuInstallation.md index e9376df..e74593b 100644 --- a/UbuntuInstallation.md +++ b/UbuntuInstallation.md @@ -155,7 +155,16 @@ sudo ldconfig cd ../ ``` -Then upgrade your compiler to at least g++ 4.7 so it supports c++11 features and then build mapnik: +Upgrade your compiler to at least g++ 4.7 so it supports c++11 features.
`apt-get upgrade` should give you g++-4.8 and gcc-4.8): +```sh +apt-get update +apt-get upgrade +git clone https://github.com/mapnik/mapnik +cd mapnik +./configure +make && sudo make install +``` +If that doesn't work, force install of g++/cc-4.7 and `./configure` with designated complier version: ```sh sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test; @@ -168,16 +177,6 @@ cd mapnik make && sudo make install ``` -_Update 10.24.14:_
-The libraries g++-4.8 and gcc-4.8 are now available via apt-get upgrade, so this should do the trick: -``` -apt-get update -apt-get upgrade -git clone https://github.com/mapnik/mapnik -cd mapnik -./configure -make && sudo make install -```