我正在试图在没有sudo访问权限的CentOS 5机器上安装harfbuz-1.0.1,因此需要安装到非标准位置。我已经下载并解压了源代码,并在我的$PKG_CONFIG_PATH中添加了我认为相关的依赖项。这些一揽子计划包括:
检查“$PKG_CONFIG_PATH`是正确的”:
$pkg-config --modversion freetype2
9.22.3
$pkg-config --modversion icu-uc
55.1在未打包的源目录中,我运行了:
$ ./configure --prefix=/some/custom/path
# produces lots of output, but summary here
Build configuration:
Unicode callbacks (you want at least one):
Glib: true
ICU: true
UCDN: false
Font callbacks (the more the better):
FreeType: false
Tools used for command-line utilities:
Cairo: true
Fontconfig: true
Additional shapers (the more the better):
Graphite2: false
Platform shapers (not normally needed):
CoreText: false
Uniscribe: false
Other features:
Documentation: no
GObject bindings: false
Introspection: false但是,make失败时出现了以下错误:
In file included from hb-glib.cc:31:0:
hb-glib.h:50:22: error: 'GBytes' was not declared in this scope
hb_glib_blob_create (GBytes *gbytes);
^
hb-glib.h:50:30: error: 'gbytes' was not declared in this scope
hb_glib_blob_create (GBytes *gbytes);
^
hb-glib.cc:389:22: error: redefinition of 'hb_blob_t* hb_glib_blob_create'
hb_glib_blob_create (GBytes *gbytes)
^
In file included from hb-glib.cc:31:0:
hb-glib.h:50:1: error: 'hb_blob_t* hb_glib_blob_create' previously defined here
hb_glib_blob_create (GBytes *gbytes);
^
hb-glib.cc:389:22: error: 'GBytes' was not declared in this scope
hb_glib_blob_create (GBytes *gbytes)
^
hb-glib.cc:389:30: error: 'gbytes' was not declared in this scope
hb_glib_blob_create (GBytes *gbytes)
^
make[4]: *** [libharfbuzz_la-hb-glib.lo] Error 1我无法从config.log文件中确定任何内容,但同样地,我也不确定要查找什么。我猜想也许在某个地方有一种未得到满足的依赖,但我现在有点不知所措。任何帮助将非常感谢,我很高兴提供更多的信息,如果需要。非常感谢。
如果有帮助的话,这里是全config.log。
发布于 2015-07-29 17:35:58
在Glib2.32中加入了glib 类型。
glib的版本是CentOS 5,是2.12,这是,比老得多。
harfbuzz配置设置应该检查是否有一个兼容版本的glib,并且在失败之前不能编译。对他们来说是个“虫子”。
您可以使用较早版本的harfbuzz,它可以使用CentOS 5附带的glib版本,或者您也可以构建和“安装”自己的glib副本。
https://stackoverflow.com/questions/31707140
复制相似问题