Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@sys:/etc/TileStache# python
- Python 2.7.3 (default, Oct 26 2016, 21:01:49)
- [GCC 4.6.3] on linux2
- Type "help", "copyright", "credits" or "license" for more information.
- >>> import mapnik
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: No module named mapnik
- >>> import mapnik2
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: No module named mapnik2
- >>> import mapnik3
- Traceback (most recent call last):
- File "<stdin>", line 1, in <module>
- ImportError: No module named mapnik3
- # Beware odd copy-paste char issues!
- #
- # http://scholtyssek.org/blog/2015/06/11/install-gcc-with-c14-support-on-ubuntumint/
- #
- sudo add-apt-repository ppa:ubuntu-toolchain-r/test
- sudo apt-get update
- sudo apt-get install g++-4.9
- sudo ln -f -s /usr/bin/g++-4.9 /usr/bin/g++
- # Adapted from the instructions found here under "Source install of Mapnik Master (3.x)"
- # https://github.com/mapnik/mapnik/wiki/UbuntuInstallation
- #
- CLANG_VERSION=3.8
- sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
- sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-${CLANG_VERSION} main";
- wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
- sudo apt-get update -y
- #### I had to add "--force-yes" to this one:
- #### sudo apt-get install -y clang-3.8;
- sudo apt-get install -y --force-yes clang-3.8;
- export CXX="clang++-3.8" && export CC="clang-3.8";
- # source bootstrap.sh
- # Throws git usage error, invalid "-C" option.
- # git --version # git version 1.7.9.5
- #
- # Option 1) replace -C with --git-dir
- ########### https://bugs.python.org/issue30411
- #
- # Option 2) upgrade git..
- ########### https://unix.stackexchange.com/a/170831
- #
- git --version # git version 1.7.9.5
- sudo add-apt-repository ppa:git-core/ppa -y
- sudo apt-get update
- sudo apt-get install git -y
- git --version # git version 2.18.0
- # Error found:
- # /home/elrobis/mapnik/mason_packages/linux-x86_64/libgdal/2.1.3/lib/libgdal.la not found
- #
- # Based on "Setup build environment" heading at..
- # https://github.com/mapnik/mapnik/wiki/UbuntuInstallation
- #
- # Manually intsall libgdal1-dev ?
- #
- apt-get install libgdal1-dev
- # During `make test`..
- # Odd error, esp since I know post is installed and works; severity unknown..
- #
- test/unit/datasource/postgis.cpp:87:
- warning:
- Can't run postgis.input tests - check postmaster is running and accessible
- #
- # Another, series of similar errors....
- ROR (Postgis Plugin: FATAL: role "root" does not exist
- #
Add Comment
Please, Sign In to add comment