安装gedit的步骤

在安装gedit 3.8.1的过程中遇到了Enchant库版本不匹配的问题,进而需要安装Enchant 1.6.0。接着,由于glib版本需求未满足,又安装了glib2.36.4。在安装libffi后,通过设置PKG_CONFIG_PATH环境变量解决了依赖问题。最后,由于缺少automake和autoconf,分别安装了相应版本,但仍然遇到警告和错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值