mapnik / python-mapnik

Python bindings for mapnik
GNU Lesser General Public License v2.1
157 stars 90 forks source link

Installation: boost directory not found #257

Open HenryP301 opened 2 years ago

HenryP301 commented 2 years ago

Hello, I am trying to install python-mapnik but I am wondering about whether it is for python 2 or 3. Also I couldn't find out whether I have to install boost or not. Do I have to install boost before running installation for python-mapnik? That's the error I am running into: ("Datei oder Verzeichnis nicht gefunden" translate to file or directory not found

ubuntu@fast-ubuntu:~/python-mapnik$ sudo BOOST_PYTHON_LIB=boost_python python setup.py install running install running bdist_egg running egg_info writing mapnik.egg-info/PKG-INFO writing top-level names to mapnik.egg-info/top_level.txt writing dependency_links to mapnik.egg-info/dependency_links.txt reading manifest file 'mapnik.egg-info/SOURCES.txt' writing manifest file 'mapnik.egg-info/SOURCES.txt' installing library code to build/bdist.linux-x86_64/egg running install_lib running build_py copying mapnik/paths.py -> build/lib.linux-x86_64-2.7/mapnik running build_ext building 'mapnik._mapnik' extension c++ -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-QDqKfA/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/mapnik_color.cpp -o build/temp.linux-x86_64-2.7/src/mapnik_color.o -I/usr/local/include -I/usr/local/include/mapnik/agg -I/usr/local/include/mapnik -I/usr/include -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/postgresql -I/usr/include/gdal -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/uuid -DMAPNIK_MEMORY_MAPPED_FILE -DMAPNIK_HAS_DLCFN -DBIGINT -DBOOST_REGEX_HAS_ICU -DHAVE_JPEG -DHAVE_PNG -DHAVE_WEBP -DHAVE_TIFF -DLINUX -DMAPNIK_THREADSAFE -DBOOST_SPIRIT_NO_PREDEFINED_TERMINALS=1 -DBOOST_PHOENIX_NO_PREDEFINED_TERMINALS=1 -DBOOST_SPIRIT_USE_PHOENIX_V3=1 -DNDEBUG -DHAVE_CAIRO -DGRID_RENDERER -std=c++14 -DU_USING_ICU_NAMESPACE=0 -fvisibility-inlines-hidden -Wall -pthread -ftemplate-depth-300 -Wsign-compare -Wshadow -O3 In file included from /usr/include/boost/python/detail/prefix.hpp:13, from /usr/include/boost/python/args.hpp:8, from /usr/include/boost/python.hpp:11, from src/mapnik_color.cpp:28: /usr/include/boost/python/detail/wrap_python.hpp:57:11: fatal error: pyconfig.h: Datei oder Verzeichnis nicht gefunden 57 | # include <pyconfig.h> | ^~~~~~~~~~~~ compilation terminated. error: command 'c++' failed with exit status 1 I hope someone can help me.

With kind Regards Henry