Friday, July 28, 2006

Oracle 10g XE on Fedora Core 5

setenforce 0 -- this is the key for installation.

System Administrator Appreciation Day

System Administrator Appreciation Day

Making Deb Package for StarDict-2.4.8

There are a bunch of enhancement in StarDict new edition 2.4.8. One of my favourite is a new button "Result".

When I install a DEB package which is converted from a RPM, it doesn't work. Then I try to make a DEB from the source. My linux box is Ubuntu 6.06 LTS with the default installation. When I ran "sudo ./configure", there was an error:
Package requirements "libgnomeui-2.0 >= 2.2.0" were not met:
Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.

However, I do have a "/usr/lib/libgnomeui-2.so.0.1401.0", what's wrong? Then I checked "stardict.spec" for the software requirement, and I found:
BuildRequires: libgnomeui-devel >= 2.2.0
That is the reason. After "libgnomeui-dev" was installed, the error disappeared.

To build a debian, there are some essential packages below:
linux-headers-2.6.15-26-386
build-essential
fakeroot
dh-make
libgnomeui-dev(this is depended on a bunch of *-dev packages which should be installed.)
libpcre-dev

Building process:
$ cd /usr/src
$ tar xvfj $SOMEWHERE/stardict-2.4.8.tar.bz2
$ cd stardict-2.4.8
$ sudo dh_make
$ sudo dpkg-buildpackage -d

When it finish, you will get a DEB package "../stardict_2.4.8-1_i386.deb". Then install, and enjoy the new edition of StarDict!