LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1220|回复: 8

编译安装fbterm时找不到fontconfig,请教!

[复制链接]
发表于 2009-6-6 01:08:45 | 显示全部楼层 |阅读模式
./configure

出现错误
checking for fontconfig... configure: error: Package requirements (fontconfig) were not met:

No package 'fontconfig' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables fontconfig_CFLAGS
and fontconfig_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

然后
debian:~/fbterm-1.5# apt-get install fontconfig
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
fontconfig 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件未被升级。

有谁熟悉字体机制的能帮我看看么?
发表于 2009-6-6 11:54:09 | 显示全部楼层
需要开发包
#apt-get install libfreetype6-dev libfontconfig1-dev libgpm-dev
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-6-6 13:35:06 | 显示全部楼层
谢谢LS,终于全部搞定,自己编译就是累人啊,总是缺这却那的。
回复 支持 反对

使用道具 举报

发表于 2009-6-7 10:11:21 | 显示全部楼层
Post by kgnn;1994783
需要开发包
#apt-get install libfreetype6-dev libfontconfig1-dev libgpm-dev


老兄,需要开发包,这几个包你是怎么知道的,每次遇到这种情况我都很苦恼,因为不知道依赖关系,可否赐教
回复 支持 反对

使用道具 举报

发表于 2009-6-7 12:10:31 | 显示全部楼层
编译deb-src源里的,apt-get build-dep 包名
自己下载的软件src,编译时缺包搜dev包,缺*.h搜*.h
apt-file要自己装
#apt-get install apt-file
#apt-file update

$ alias aptse aptfs aptin
alias aptse='apt-cache search'
alias aptfs='apt-file search'
alias aptin='sudo /usr/bin/apt-get install --no-install-recommends'
$ ./configure --prefix='/usr'
...
No package 'freetype2' found
$ aptse freetype2 dev
vflib3-dev - Development files for VFlib3
$ aptse freetype dev
libafterimage-dev - imaging library designed for AfterStep - development files
libcamlimages-ocaml-dev - OCaml image processing library
libcoin40c2 - high-level 3D graphics kit with Open Inventor and VRML97 support - runtime
libftgl-dev - development files for libftgl
libotf-dev - A Library for handling OpenType Font - development
libxft-dev - FreeType-based font drawing library for X (development files)
scribus-ng - Open Source Desktop Page Layout - developmental branch
vflib3-dev - Development files for VFlib3
libfreetype6 - FreeType 2 font engine, shared library files
libfreetype6-dev - FreeType 2 font engine, development files
libpango1.0-dev - Development files for the Pango
$ aptin libfreetype6-dev
$ ./configure --prefix='/usr'
...
No package 'fontconfig' found
$ aptse fontconfig dev
libfontconfig1-dev - generic font configuration library - development
libgd2-noxpm-dev - GD Graphics Library version 2 (development version)
libgd2-xpm-dev - GD Graphics Library version 2 (development version)
libxft-dev - FreeType-based font drawing library for X (development files)
$ aptin libfontconfig1-dev
$ ./configure --prefix='/usr'
...
configure: WARNING: gpm.h dosn't exist! gpm mouse support will be disabled!
$ aptfs gpm.h
dahb-html: /usr/share/doc/dahb-html/html/gpm.html
libapt-pkg-dev: /usr/include/apt-pkg/dpkgpm.h
libgpm-dev: /usr/include/gpm.h
selinux-policy-doc: /usr/share/doc/selinux-policy-doc/html/services_gpm.html
$ aptin libgpm-dev
$ ./configure --prefix='/usr'
$ make
# make install

# apt-get build-dep xmms2
需要下载 70.6MB/74.0MB 的软件包。
解压缩后会消耗掉 283MB 的额外空间。
您希望继续执行吗?[Y/n]n
汗...也太多了
# apt-get build-dep --no-install-recommends xmms2
需要下载 38.5MB/42.0MB 的软件包。
解压缩后会消耗掉 153MB 的额外空间。
您希望继续执行吗?[Y/n]n
回复 支持 反对

使用道具 举报

发表于 2009-6-7 13:32:20 | 显示全部楼层
build-dep 是最重要的,因为 debian 有巨大的软件仓库,能自动配置绝大多数软件的编译环境,自己 apt-get install 几十个 dev 包很笨拙。

楼上那些 alias 配置的搜索,用 auto-apt 是个不错的替代。
回复 支持 反对

使用道具 举报

发表于 2009-6-7 14:28:35 | 显示全部楼层
# auto-apt run ./configure --prefix='/usr'
No package 'freetype2' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables freetype2_CFLAGS
and freetype2_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
不起作用?

LS的,用auto-apt编译安装fbterm怎么用?
回复 支持 反对

使用道具 举报

发表于 2009-6-8 00:12:01 | 显示全部楼层
不知道 auto-apt 实现的细节,或许某些情况下就是不工作的。取决于 run "command" 返回错误之前使用的探测方法,猜测是基于文件名的,对环境变量之类或许无效。我几乎不编译东西,对这个工具了解不深。

http://www.debian.org/doc/manual ... -cn.html#s-auto-apt
回复 支持 反对

使用道具 举报

发表于 2009-6-8 16:49:04 | 显示全部楼层
"缺省情况下,apt-file和auto-apt使用同一个数据库"
如果出错提示缺.h,auto-apt应该可以自动搜索然后下载安装
auto-apt run运行一般程序出错提示缺.so应该也可以自动搜索下载安装

编译fbterm提示缺包,其实是缺相应dev包,用apt-cache搜索包名
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表