首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >在CentOS 5上安装pango-1.36

在CentOS 5上安装pango-1.36
EN

Stack Overflow用户
提问于 2015-07-30 22:40:48
回答 1查看 1.3K关注 0票数 1

我正尝试在CentOS 5服务器上安装pango-1.36,因为我没有超级用户访问权限,因此必须安装到非标准位置。我已经下载了源代码,但是当我尝试运行./configure时,我得到了以下错误消息:

代码语言:javascript
运行
复制
checking which cairo font backends could be used... none
configure: Disabling cairo support
configure: error: *** Could not enable any backends.
*** Must have at least one backend to build Pango.

当我深入研究config.log时,我看到了以下内容:

代码语言:javascript
运行
复制
configure:18613: $PKG_CONFIG --exists --print-errors "cairo-quartz-font >= $cairo_required"
Package cairo-quartz-font was not found in the pkg-config search path.
Perhaps you should add the directory containing `cairo-quartz-font.pc'
to the PKG_CONFIG_PATH environment variable
No package 'cairo-quartz-font' found
configure:18616: $? = 1
configure:18631: checking which cairo font backends could be used
configure:18640: result: none
configure:18642: Disabling cairo support
configure:18793: error: *** Could not enable any backends.
*** Must have at least one backend to build Pango.

我不确定为什么pango特别需要cairo-quartz-font。当我安装cairo时,我启用了Fontconfig,这似乎起作用了:

代码语言:javascript
运行
复制
# in cairo source directory
./configure --prefix=/some/custom/path --enable-fc
# lots of output, just showing summary
cairo (version 1.14.2 [release]) will be compiled with:

The following surface backends:
  Image:         yes (always builtin)
  Recording:     yes (always builtin)
  Observer:      yes (always builtin)
  Mime:          yes (always builtin)
  Tee:           no (disabled, use --enable-tee to enable)
  XML:           no (disabled, use --enable-xml to enable)
  Skia:          no (disabled, use --enable-skia to enable)
  Xlib:          yes
  Xlib Xrender:  yes
  Qt:            no (disabled, use --enable-qt to enable)
  Quartz:        no (requires CoreGraphics framework)
  Quartz-image:  no (disabled, use --enable-quartz-image to enable)
  XCB:           no (requires xcb >= 1.6 xcb-render >= 1.6 http://xcb.freedesktop.org)
  Win32:         no (requires a Win32 platform)
  OS2:           no (disabled, use --enable-os2 to enable)
  CairoScript:   yes
  PostScript:    yes
  PDF:           yes
  SVG:           yes
  OpenGL:        no (disabled, use --enable-gl to enable)
  OpenGL ES 2.0: no (disabled, use --enable-glesv2 to enable)
  BeOS:          no (disabled, use --enable-beos to enable)
  DirectFB:      no (disabled, use --enable-directfb to enable)
  OpenVG:        no (disabled, use --enable-vg to enable)
  DRM:           no (disabled, use --enable-drm to enable)
  Cogl:          no (disabled, use --enable-cogl to enable)

The following font backends:
  User:          yes (always builtin)
  FreeType:      yes
  Fontconfig:    yes
  Win32:         no (requires a Win32 platform)
  Quartz:        no (requires CoreGraphics framework)

The following functions:
  PNG functions:   yes
  GLX functions:   no (not required by any backend)
  WGL functions:   no (not required by any backend)
  EGL functions:   no (not required by any backend)
  X11-xcb functions: no (disabled, use --enable-xlib-xcb to enable)
  XCB-shm functions: no (requires --enable-xcb)

The following features and utilities:
  cairo-trace:                yes
  cairo-script-interpreter:   yes

And the following internal features:
  pthread:       yes
  gtk-doc:       no
  gcov support:  no
  symbol-lookup: no (requires bfd)
  test surfaces: no (disabled, use --enable-test-surfaces to enable)
  ps testing:    no (requires libspectre)
  pdf testing:   no (requires poppler-glib >= 0.17.4)
  svg testing:   no (requires librsvg-2.0 >= 2.35.0)

所以看起来cairo有两个不同的字体后端,包括Fontconfig,启用了。pango是否特别需要cairo-quartz-font?有没有办法让它也使用Fontconfig?任何帮助都将不胜感激,如果还有其他信息我可以提供,请告诉我。非常感谢。

EN

回答 1

Stack Overflow用户

发布于 2018-10-10 18:11:44

对于Debian和Debian衍生产品,包括Ubuntu:

代码语言:javascript
运行
复制
sudo apt-get install libcairo2-dev

对于Fedora:

代码语言:javascript
运行
复制
sudo yum install cairo-devel

对于openSUSE:

代码语言:javascript
运行
复制
zypper install cairo-devel
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31726863

复制
相关文章

相似问题

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