1.
安装gedit3.8.1
http://ftp.gnome.org/pub/GNOME/sources/gedit/3.8/gedit-3.8.1.tar.xz
解压 ./configure报错:error: Enchant library not found or too old
2.
安装Enchant1.6.0
http://www.abisource.com/downloads/enchant/1.6.0/enchant-1.6.0.tar.gz
解压 ./configure报错:error: Package requirements (glib-2.0 >= 2.6 gmodule-2.0) were not met:
3.
安装glib2.36.4
http://ftp.gnome.org/pub/gnome/sources/glib/2.36/glib-2.36.4.tar.xz
解压 ./configure报错:error: Package requirements (libffi >= 3.0.0) were not met
4.
安装libffi
ftp://sourceware.org/pub/libffi/libffi-3.0.13.tar.gz
安装libffi成功,依旧报错
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/(临时加入环境变量,shell关闭就消失)
(vi ./bash_profile加上PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/:/usr/lib/pkgconfig/ ,
source /home/rock/.bash_profile) (对用户永久有效)
配置成功了,
5.
接着make,
WARNING: 'automake-1.13' is missing on your system.
error: Autoconf 2.65 or better is required.
下载安装automake-1.13和autoconf-2.69
http://ftp.gnu.org/gnu/automake/automake-1.13.tar.xz
http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.xz
find命令查找目录
find / -name 目录名
接着make,WARNING: 'automake-1.13' is missing on your system.
error: Autoconf 2.65 or better is required.
把原来的glib卸载掉 再编译安装新的 或者 编译新的glib指定目录到/usr/local/glib2 然后在编译audacious 加入 --with选项 把glib的路径指向你编译的目录(具体选项写法参照configure --help所写) 它提示你glib版本必须大于2.28 但是 你本机安装的2.22.5 你编译安装的并没有被识别 所以报错还是原来的glib
-
追问
-
终于碰到牛人了,大哥,问题就在这里就不会了: 1、怎么卸载原来的glib 2、编译新的glib时怎么制定目录/usr/local/bin2
-
回答
-
./configure --prefix=/usr/local/glib2 make make install 安装glib 然后 audacious安装的时候 ./configure --help 找找 有个选项类似 --with-glib=什么的 然后编译时候输入 ./configure --with-glib=/usr/local/glib2