I am not quite sure I can follow the README to get thing installed. I installed the mapnik from the debian repo using apt-get install. Then I tried to issue the command python setup.py install, I got error indicating the installation needs to connect to postgresql? Do we need a postgresql server installed first?
Links will be inside /python-mapnik/mason_packages/.link/
Using bash fallback for symlinking (install lndir for faster symlinking)
Done linking /python-mapnik/mason_packages/headers/boost/1.63.0
initdb: cannot be run as root
Please log in (using, e.g., "su") as the (unprivileged) user that will
own the server process.
"root" execution of the PostgreSQL server is not permitted.
The server must be started under an unprivileged user ID to prevent
possible system security compromise. See the documentation for
more information on how to properly start the server.
createdb: could not connect to database template1: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/python-mapnik/local-unix-socket/.s.PGSQL.1111"?
....
I am not quite sure I can follow the README to get thing installed. I installed the mapnik from the debian repo using apt-get install. Then I tried to issue the command python setup.py install, I got error indicating the installation needs to connect to postgresql? Do we need a postgresql server installed first?
(geospatial) root@70e0cc697254:/python-mapnik# python setup.py install