首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在CentOS 5上安装harfbuzz 1.0.1

在CentOS 5上安装harfbuzz 1.0.1
EN

Stack Overflow用户
提问于 2015-07-29 17:22:32
回答 1查看 1.1K关注 0票数 0

我正在试图在没有sudo访问权限的CentOS 5机器上安装harfbuz-1.0.1,因此需要安装到非标准位置。我已经下载并解压了源代码,并在我的$PKG_CONFIG_PATH中添加了我认为相关的依赖项。这些一揽子计划包括:

  • freetype2
  • icu-uc

检查“$PKG_CONFIG_PATH`是正确的”:

代码语言:javascript
复制
$pkg-config --modversion freetype2
9.22.3
$pkg-config --modversion icu-uc
55.1

在未打包的源目录中,我运行了:

代码语言:javascript
复制
$ ./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失败时出现了以下错误:

代码语言:javascript
复制
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

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-29 17:35:58

在Glib2.32中加入了glib 类型

glib的版本是CentOS 5,是2.12,这是,比老得多。

harfbuzz配置设置应该检查是否有一个兼容版本的glib,并且在失败之前不能编译。对他们来说是个“虫子”。

您可以使用较早版本的harfbuzz,它可以使用CentOS 5附带的glib版本,或者您也可以构建和“安装”自己的glib副本。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31707140

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档