Guest User

Untitled

a guest
Aug 21st, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.45 KB | None | 0 0
  1. root@sys:/etc/TileStache# python
  2. Python 2.7.3 (default, Oct 26 2016, 21:01:49)
  3. [GCC 4.6.3] on linux2
  4. Type "help", "copyright", "credits" or "license" for more information.
  5. >>> import mapnik
  6. Traceback (most recent call last):
  7. File "<stdin>", line 1, in <module>
  8. ImportError: No module named mapnik
  9. >>> import mapnik2
  10. Traceback (most recent call last):
  11. File "<stdin>", line 1, in <module>
  12. ImportError: No module named mapnik2
  13. >>> import mapnik3
  14. Traceback (most recent call last):
  15. File "<stdin>", line 1, in <module>
  16. ImportError: No module named mapnik3
  17.  
  18. # Beware odd copy-paste char issues!
  19. #
  20. # http://scholtyssek.org/blog/2015/06/11/install-gcc-with-c14-support-on-ubuntumint/
  21. #
  22.  
  23. sudo add-apt-repository ppa:ubuntu-toolchain-r/test
  24. sudo apt-get update
  25. sudo apt-get install g++-4.9
  26. sudo ln -f -s /usr/bin/g++-4.9 /usr/bin/g++
  27.  
  28. # Adapted from the instructions found here under "Source install of Mapnik Master (3.x)"
  29. # https://github.com/mapnik/mapnik/wiki/UbuntuInstallation
  30. #
  31.  
  32. CLANG_VERSION=3.8
  33. sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
  34. sudo add-apt-repository "deb http://llvm.org/apt/precise/ llvm-toolchain-precise-${CLANG_VERSION} main";
  35. wget -O - http://llvm.org/apt/llvm-snapshot.gpg.key|sudo apt-key add -
  36. sudo apt-get update -y
  37. #### I had to add "--force-yes" to this one:
  38. #### sudo apt-get install -y clang-3.8;
  39. sudo apt-get install -y --force-yes clang-3.8;
  40. export CXX="clang++-3.8" && export CC="clang-3.8";
  41.  
  42. # source bootstrap.sh
  43. # Throws git usage error, invalid "-C" option.
  44. # git --version # git version 1.7.9.5
  45. #
  46. # Option 1) replace -C with --git-dir
  47. ########### https://bugs.python.org/issue30411
  48. #
  49. # Option 2) upgrade git..
  50. ########### https://unix.stackexchange.com/a/170831
  51. #
  52.  
  53. git --version # git version 1.7.9.5
  54. sudo add-apt-repository ppa:git-core/ppa -y
  55. sudo apt-get update
  56. sudo apt-get install git -y
  57. git --version # git version 2.18.0
  58.  
  59. # Error found:
  60. # /home/elrobis/mapnik/mason_packages/linux-x86_64/libgdal/2.1.3/lib/libgdal.la not found
  61. #
  62. # Based on "Setup build environment" heading at..
  63. # https://github.com/mapnik/mapnik/wiki/UbuntuInstallation
  64. #
  65. # Manually intsall libgdal1-dev ?
  66. #
  67.  
  68. apt-get install libgdal1-dev
  69.  
  70. # During `make test`..
  71. # Odd error, esp since I know post is installed and works; severity unknown..
  72. #
  73. test/unit/datasource/postgis.cpp:87:
  74. warning:
  75. Can't run postgis.input tests - check postmaster is running and accessible
  76. #
  77. # Another, series of similar errors....
  78. ROR (Postgis Plugin: FATAL: role "root" does not exist
  79. #
Add Comment
Please, Sign In to add comment