This howto will tell you how to compile wine in an Ubuntu AMD64 Dapper Drake system. It worked for me. Let me know if it doesn't for you. It might work in Breezy too, but I'm not sure.
First add the universe repository to your /etc/apt/sources.list file, if you have not already.
Code:
sudo gedit /etc/apt/sources.list
use kate instead of gedit if you use kde. Add the following line to the end of the script.
Code:
deb http://au.archive.ubuntu.com/ubuntu dapper universe
Obviously change the country if necessary.
Then type into a terminal:
Code:
sudo apt-get build-dep wine
sudo apt-get install build-essential gcc-3.4 libc6-i386 libc6-dev-i386 ia32-libs
now make sure that your libraries will be found (thanks to jontxo for this tip)
If there are any problems with the location of any library the best thing to do to solve it is to edit, or to create if it doesn't already exist, the file /etc/ld.so.conf.
Code:
sudo gedit /etc/ld.so.conf
Use kate if you use Kubuntu. There you can tell ubuntu the directories where it can search for libraries. This is my file:
/usr/X11R6/lib32
/usr/lib32
/lib32/
after editing this file you only have to use the comand sudo ldconfig.
now get the wine source package:
Code:
mkdir ~/tmp
cd ~/tmp
wget -c http://wine.budgetdedicated.com/apt/pool/main/w/wine/wine_0.9.21~winehq0~ubuntu~6.06.orig.tar.gz
tar xvzf wine_0.9.21~winehq0~ubuntu~6.06.orig.tar.gz
Now you have to install the 32-bit dependencies of wine.
Code:
wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/i/icu/libicu34-dev_3.4.1a-1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/i/icu/libicu34_3.4.1a-1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/f/freetype1/libttf2_1.4pre.20030402-1.1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/f/freetype1/libttf-dev_1.4pre.20030402-1.1ubuntu1_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/libx/libx11/libx11-dev_6.2.1+cvs.20050722-8_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/libx/libxext/libxext6_1.0.0-0ubuntu4_i386.deb; wget -c http://mirrors.uwa.edu.au/ubuntu/pool/main/libx/libxext/libxext-dev_1.0.0-0ubuntu4_i386.deb
for i in *.deb; do dpkg -x "$i" `basename "$i" .deb`; done
rm -Rf *.deb
sudo -i
cd /home/<username>/tmp # replace <username> with your username, obviously ;)
cp -r libicu34_*/usr/lib/*.so.34.1 /usr/lib32
for i in /usr/lib32/libicu*.so.34.1; do ln -fs "$i" /usr/lib32/`basename "$i" .1`; done
for i in /usr/lib32/libicu*.so.34.1; do ln -fs "$i" /usr/lib32/`basename "$i" .34.1`; done
cp -r libicu34-*/usr/lib/*.a /usr/lib32
cp -r libicu34-*/usr/lib/icu /usr/lib32
cp -r libttf2_*/usr/lib/*.so.2.4.0 /usr/lib32
ln -fs /usr/lib32/libttf.so.2.4.0 libttf.so.2
ln -fs /usr/lib32/libttf.so.2.4.0 libttf.so
cp -r libttf-dev_*/usr/lib/*.[al]* /usr/lib32
cp -r libx11-dev*/usr/lib/libX11.a /usr/lib32; cp -r libx11-dev*/usr/lib/pkgconfig/* /usr/lib32/pkgconfig
ln -fs /usr/lib32/libX11.so.6.2.0 /usr/lib32/libX11.so
cp -r libxext6_*/usr/lib/libXext.so.6.4.0 /usr/lib32
ln -fs /usr/lib32/libXext.so.6.4.0 /usr/lib32/libXext.so.6
ln -fs /usr/lib32/libXext.so.6.4.0 /usr/lib32/libXext.so
cp -r libxext-dev*/usr/lib/*.a /usr/lib32
cp -r libxext-dev*/usr/lib/pkgconfig/* /usr/lib32/pkgconfig/
ldconfig
exit
Now we actually have to compile wine. It took about half an hour on my AMD Athlon64 3000+, so it will take a while.
Code:
cd wine_0.9.21~winehq0~ubuntu~6.06.orig
CC="gcc-3.4 -m32" ./configure
make depend && make
sudo make install
Now you have the latest wine installed in your amd64 system. Use the guide at http://ubuntuforums.org/showthread.p...hlight=winecvs from step four to configure wine properly.
Hope this guide helps somebody.
* I added libc6-i386 to the install list, thanks to jontxo
* I forgot to write install in the apt-get install line, fixed
* updated the version of libxext6 and libxext-dev available (from 1.0.0-0ubuntu3 to 1.0.0-0ubuntu4) and changed cd wine_0.9.12~winehq1.orig.tar.gz to cd wine-0.9.12~winehq1.orig (thanks zakusage)
Bookmarks