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为例。

错误如下图:

Ubuntu12.04安装中fbterm问题解决_第1张图片

$ 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++

Ubuntu12.04安装中fbterm问题解决_第2张图片

补充:

对于出现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

你可能感兴趣的:(ubuntu,包缺少问题解决,fbterm字符终端)