安装harfbuzz遇到的报错与解决方法

重新安装ggrastr,需要先安装harfbuzz。

0)

报错: ./autogen.sh 出现
undefined symbol: Perl_xs_handshake

解决方法: 重装 autoconf (automake, libtool)

1)

报错: 0)解决后, ./autogen.sh  又出现
src/hb-ucdn/Makefile.am:3: error: Libtool library used but 'LIBTOOL' is undefined
src/hb-ucdn/Makefile.am:3:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
src/hb-ucdn/Makefile.am:3:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
src/hb-ucdn/Makefile.am:3:   If 'LT_INIT' is in 'configure.ac', make sure
src/hb-ucdn/Makefile.am:3:   its definition is in aclocal's search path.

实际上libtool和libtoolize都work

解决方法:

libtoolize

./autogen.sh

2)

报错:./configure 时出现
./configure: line 18189: syntax error near unexpected token `0.20'
./configure: line 18189: `PKG_PROG_PKG_CONFIG(0.20)'

解决方法:

cp /一个路径/automake/pkg-config-0.29.1/mybuild/share/aclocal/pkg.m4 m4/


3)

可能 PKG_CONFIG_PATH里的东西会有冲突,只保留了一个主要的
export PKG_CONFIG_PATH=/一个路径/05.setting/PKGCONFIG

4)

报错:make的时候出现一个报错,提示代码问题。具体描述同  https://github.com/harfbuzz/harfbuzz/issues/1338(HarfBuzz 2.1.0 fails to build if default standard isn't C++11 or later)
解决方法: ./configure --prefix=/lustre1/zeminz_pkuhpc/01.bin/mills/harfbuzz/harfbuzz-2.1.0/mybuild CXXFLAGS=-std=c++11

 

* 注意: 需要下载再兼容的软件版本。安装成功的版本: freetype-2.9.1,harfbuzz-2.1.0, fribidi-1.0.5

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值