ubuntu10.04 中安装 Xdialog

本文详细介绍了在Ubuntu更新版本后,由于libgtk1.2被移除导致Xdialog无法使用的解决方案。通过添加特定仓库、编译并安装所需的libglib1.2和libgtk1.2库,成功解决了问题,使得Xdialog得以继续在guified shell scripts中使用。

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

    In more recent versions of Ubuntu the developers have decided that libgtk1.2/libglib1.2 is obsolete and therefore has been removed. Unfortunately for me this causes a problem as I like to use Xdialog (which relies on libgtk1.2) for guified shell scripts. Most people would just go ahead and use Zenity which has it's uses, but lacks many features that Xdialog has. Xdialog hasn't been part of Ubuntu since Hardy so it needs to be compiled from source, but without the proper dev libraries either, we are out of luck. Or are we? Knut Auvor Grythe was gracious enough to host all the required library sources which we can compile and then use to compile Xdialog.

Add the repositories to your /etc/apt/sources.list (Karmic repos work for Lucid and Maverick):


deb http://www.pvv.ntnu.no/~knuta/xmms/karmic ./
deb-src http://www.pvv.ntnu.no/~knuta/xmms/karmic ./

Build and install the libraries:

sudo apt-get build-dep libglib1.2-dev
apt-get -b source libglib1.2-dev
sudo dpkg -i libglib1.2-dev_1.2.10-19build1_*.deb            libglib1.2ldbl_1.2.10-19build1_*.deb
sudo apt-get build-dep libgtk1.2
apt-get -b source libgtk1.2
sudo dpkg -i libgtk1.2_1.2.10-18.1build2_*.deb libgtk1.2-common_1.2.10-18.1build2_all.deb libgtk1.2-dev_1.2.10-18.1build2_*.deb

Get Xdialog source code and extract it:

wget http://xdialog.free.fr/Xdialog-2.3.1.tar.bz2
tar xvf Xdialog-2.3.1.tar.bz2

Compile and install Xdialog:

cd Xdialog-2.3.1
./configure
make
sudo make install

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

七斗星

赏点银子去植发

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值