ubuntu10.04 中安装 Xdialog

    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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

IOT物联网小镇

赏点银子去植发

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

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

打赏作者

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

抵扣说明:

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

余额充值