Sunday 23 August 2009

How-To: Compile and Install Wine 1.1.28 in Debian Lenny

Wine 1.1.28 was released on August 21 and it comes with new features and improvements like support for IRDA protocol, faster wineprefix creation, more image formats in WindowsCodecs and various other bug fixes.

To get Wine 1.1.28 in Debian Lenny, follow the next steps:

1. Enable the sources repositories
Edit your /etc/apt/sources.list file as root and make sure you have a line which starts with deb-src, like in the example below:

deb-src ftp://ftp.fi.debian.org/debian/ lenny main contrib non-free

If not, add it, replacing the TLD (top level domain) with your own country TLD (in the example above the TLD is ftp.fi.debian.org - Finland).

2. Update the package lists
As root, type:

apt-get update

3. Install the needed dependencies
As root, type the following commands in a terminal window:

apt-get install build-essential
apt-get build-dep wine

The first command will get build-essential (which is a meta package including tools needed for the compilation, like gcc) and the second will fetch the Wine development libraries.

3. Get the source tarball
Download the source tarball from here (direct link here) and uncompress it:

tar -xjf wine-1.1.28.tar.bz2

4. Compile and install Wine
Make sure the current working directory is wine-1.1.28 and type the following commands:

./configure
make depend && make
make install

The last command (make install) with root privileges. Alternately, you can install Wine as normal user by specifying a prefix:

./configure --prefix=/home/USER/usr/
make depend && make
make install

In which case you don't need to run make install as root, but as normal user only.

After the installation is complete, run:

winecfg

And that's it. Wine should be now properly installed. Run any Windows application using:

wine executable_file.exe

No comments: