Ubuntu12.04安装中fbterm问题解决

这两天安装fbterm的时候,遇到了不少问题,不过最后通过查资料都一一化解,哈哈,很不错。

问题主要集中在安装的第一步:

./configure

这一步的错误大部分都是:

checking for ××××... configure:error: Package requirements(****) were not met: No package '***' 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 FC_CFLAGS and FC_LIBS to avoid the need to call pkg-config.

See the pkg-config man page for more details.

其中的****就是却是的包的名字。

解决方法:

freetype2为例。

错误如下图:


$ apt-cache search libfreetype | grep dev
显示结果如下:

libfreetype6-dev - FreeType 2 font engine, development files
libotf-dev - A Library for handling OpenType Font - development
libpango1.0-dev - Development files for the Pango
libxft-dev - FreeType-based font drawing library for X (development files)
libafterimage-dev - imaging library designed for AfterStep - development files
libcamlimages-ocaml-dev - OCaml image processing library (Development package)
libftgl-dev - development files for libftgl
libghc-x11-xft-dev - Haskell Xft binding for GHC
libtaoframework-freetype-cil-dev - Tao CLI binding for FreeType - development files
libtaoframework-ftgl-cil-dev - Tao CLI binding for FTGL - development files
vflib3-dev - Development files for VFlib3

所以缺失的就是红色标注的包,安装那个包一般就可以了。


$ sudo apt-get install libreetype6-dev

安装后就可以继续./configure了。



另外:如果出现如下所示图,则为缺少g++, 安装g++即可。

$ sudo apt-get install g++


补充:

对于出现Warning: gpm.h  (libx86.h) doesn't exsit 的情况:


同上面一样,先搜索这两个头文件在哪个包中,然后安装上就可以了。

$ apt-cache search gpm | grep dev

参考资料:

http://ubuntuforums.org/archive/index.php/t-1682758.html

http://packages.ubuntu.com/search?suite=precise&keywords=fontconfig

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值