mapnik3安装(centos7)

mapnik3安装(centos7)
sudo yum install boost-
yum install libpng-devel
yum install libjpeg-devel
sudo yum install libicu-devel
sudo yum install bzip2-devel
sudo yum install harfbuzz-devel

yum install libxml2
yum install libxml2-devel -y
sudo yum install boost-devel postgresql-devel
sudo yum proj-devel proj-epsg [没有]
libicu-devel

sudo yum install cairo-devel

wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-2.2.0.tar.bz2

wget http://download.osgeo.org/geos/geos-3.6.2.tar.bz2

tar xvjf geos-3.6.2.tar.bz2

sudo ./configure --prefix=/usr/ --with-python --with-geos=geos-config

git clone https://github.com/mapnik/mapnik.git
cd mapnik
git checkout v3.0.21
git submodule update --init
./configure && make && make test

HB_INCLUDES

HB_LIBS

$ pkg-config --libs --cflags harfbuzz

-I/usr/local/Cellar/harfbuzz/0.9.35_1/include/harfbuzz -L/usr/local/Cellar/harfbuzz/0.9.35_1/lib -lharfbuzz

./configure HB_LIBS=/usr/local/Cellar/harfbuzz/0.9.35_1/lib HB_INCLUDES=/usr/local/Cellar/harfbuzz/0.9.35_1/include

HB_LIBS=/usr/local/Cellar/harfbuzz/0.9.35_1/lib HB_INCLUDES=/usr/local/Cellar/harfbuzz/0.9.35_1/include
python scons/scons.py configure HB_LIBS=/usr/lib64/ HB_INCLUDES=/usr/include/harfbuzz

python scons/scons.py configure
python scons/scons.py
python scons/scons.py install

–正常安装后设置对应路径
python scons/scons.py HB_LIBS=/usr/lib/ HB_INCLUDES=/usr/include/harfbuzz

你可能感兴趣的:(mapnik3安装(centos7))