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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值