求助安装Mapnik3.0版本之harfbuzz

有安装地图服务器的需求,在安装Mapnik。

查遍全网,其中在编译Mapnik过程中有一个步骤过不去。

 

(cached) Checking for C++ library harfbuzz... no
Could not find required header or shared library for harfbuzz

Exiting... the following required dependencies were not found:
   - harfbuzz (HarfBuzz text shaping library | configure with HB_LIBS & HB_INCLUDES)

See '/home/chanliq/gis/mapnik/config.log' for details on possible problems.

Also, these OPTIONAL dependencies were not found:
   - webp (WEBP C library | configure with WEBP_LIBS & WEBP_INCLUDES)

Set custom paths to these libraries and header files on the command-line or in
 file called 'config.py'
    ie. $ python scons/scons.py BOOST_INCLUDES=/usr/local/include BOOST_LIBS=/u
r/local/lib

 

求助安装Mapnik3.0版本之harfbuzz_第1张图片

大家在这个问题的解决办法是一致的,但是我这里无法解决。

在Mapnik官方的安装文档中有要求如下

libharfbuzz - an OpenType text shaping engine (>=0.9.34 needed for CSS font-feature-settings support)

在网上搜索Mapnik安装 到了这步,解决办法一模一样。

CSDN上1、CSDN2、阿里云、jb51。

于是我安装了brew,推荐去brew的github上下载安装。也有安装步骤!

安装完成,执行如下指令,安装harfbuzz。

$ brew install harfbuzz

BUT ! 问题来了。

安装好 harfbuzz 系统不识别那!

 $ pkg-config --libs --cflags harfbuzz

有人能解决这个问题嘛!谢谢

后来我找到---harfbuzz.pc 和 graphite2.pc 放在

/usr/lib64/pkgconfig/

然后查看可以识别出 harfbuzz,

不过依旧不能安装。

@网上的大神们,给小弟帮帮忙!再三感谢!

你可能感兴趣的:(求助安装Mapnik3.0版本之harfbuzz)