Debian Lenny comes with Wine 1.0.1 included in the repositories, which is the stable release of Wine, but it is also a little outdated. Here are a few easy steps for compiling and installing the latest Wine release from source in Debian Lenny. This tutorial should work for the latest Wine release (at the time of writing, the last release is 1.1.17).
1. Install the tools needed for the compilation
Type in a terminal as root:
apt-get install build-essential
2. Install the development libraries needed by Wine
To install the necessary dependencies, first make sure that you have the sources repositories enabled in your /etc/apt/sources.list file. To do this, you should have a line which starts with deb-src, e.g.:
deb-src ftp://ftp.ro.debian.org/debian/ lenny main contrib non-free
Next, update the packages list:
apt-get update
And then install the dependencies:
apt-get build-dep wine
This will take a while, depending on the speed of your Internet connection.
3. Download the source tarball
Get the source tarball for the latest release from the official website, then uncompress it. For example, for Wine 1.1.17 you would issue the following command in the directory where you saved it:
tar -xjf wine-1.1.17.tar.bz2
Next, change the current working directory to wine-1.1.17 and proceed to the next step.
4. Compile and install Wine
You can either do:
./configure
make depend && make
make install
The last one as root. Or you can use their script located in the tools/ directory, wineinstall:
./tools/wineinstall
make install
If you want to install Wine as normal user change the prefix to, say, /home/USER/usr:
./configure --prefix=/home/USER/usr
make depend && make
make install
And make sure to include /home/USER/usr/bin in your $PATH.
Next configure Wine by typing winecfg as normal user and run Windows applications like this:
wine application_name.exe
Make sure to keep the directory wine-1.1.17, so in case you need to uninstall Wine, you will only have to issue the following command from inside that directory:
make uninstall
Alternate way to install Wine: using the WineHQ repository
To set up Wine from the WineHQ repository you will need to follow this simple tutorial, provided on the Wine homepage. To sum it up:
Remove your existing Wine installation as root:
apt-get remove wine
Add this line to your /etc/apt/sources.list file:
deb http://www.lamaresh.net/apt lenny main
Add the GPG key:
wget -O - http://www.lamaresh.net/apt/key.gpg | apt-key add -
Issue the following two commands:
apt-get update && apt-get install wine
This should do it too.
Updated: March 31, 2009
4 comments:
there are .deb files for lenny available on winehq homepage
NEVER do "make install" in a Debian system. Use the "checkinstall" program instead.
jeebus kris. you should have put the shorter instructions on top. *sigh* thanks anyway
Bad instructions. None of them work. I'm still stuck with the old version of wine.
Post a Comment