There are cases when you desperately need the latest version of wine but it’s not yet available in your repo, you can’t wait for the rpm, you need to play your favorite Windows game now *cough* Diablo 3 *cough*, you’re not quite sure how to install it other than the very easy “sudo yum install wine”. (OK, some don’t find sudo yum easy and prefer to go through the Applications -> Add/Remove Software, yada yada, yikes. I do get lost there), and you’re running 64-bit and the game runs better on 32-bit, etc. yada, etc. yada. Then this post is for you..and for me too.

We will try to install the latest wine 1.5.6 on Fedora 15 64-bit. As I write this, I am actually doing the installation. Hopefully, it would be successful at the end of my writing ;).

  1. Remove your previous wine installation, if you have any.

     sudo yum remove wine*
  2. Get the latest wine. At the moment, it is wine 1.5.6 as announced in winehq.

  3. On Fedora 15 x86_64, sudo yum install the following devel packages. These will allow you to build 32-bit binaries. This should also apply to other Fedora versions. Look here for more info.

     yum install alsa-lib-devel.i686 alsa-lib-devel audiofile-devel.i686 audiofile-devel cups-devel.i686 cups-devel dbus-devel.i686 dbus-devel fontconfig-devel.i686 fontconfig-devel freetype.i686 freetype-devel.i686 freetype-devel giflib-devel.i686 giflib-devel lcms-devel.i686 lcms-devel libICE-devel.i686 libICE-devel libjpeg-turbo-devel.i686 libjpeg-turbo-devel libpng-devel.i686 libpng-devel libSM-devel.i686 libSM-devel libusb-devel.i686 libusb-devel libX11-devel.i686 libX11-devel libXau-devel.i686 libXau-devel libXcomposite-devel.i686 libXcomposite-devel libXcursor-devel.i686 libXcursor-devel libXext-devel.i686 libXext-devel libXi-devel.i686 libXi-devel libXinerama-devel.i686 libXinerama-devel libxml2-devel.i686 libxml2-devel libXrandr-devel.i686 libXrandr-devel libXrender-devel.i686 libXrender-devel libxslt-devel.i686 libxslt-devel libXt-devel.i686 libXt-devel libXv-devel.i686 libXv-devel libXxf86vm-devel.i686 libXxf86vm-devel mesa-libGL-devel.i686 mesa-libGL-devel mesa-libGLU-devel.i686 mesa-libGLU-devel ncurses-devel.i686 ncurses-devel openldap-devel.i686 openldap-devel openssl-devel.i686 openssl-devel zlib-devel.i686 pkgconfig sane-backends-devel.i686 sane-backends-devel xorg-x11-proto-devel glibc-devel.i686 prelink fontforge flex bison libstdc++-devel.i686 pulseaudio-libs-devel.i686 gnutls-devel.i686 libgphoto2-devel.i686 openal-soft-devel openal-soft-devel.i686 isdn4k-utils-devel.i686 gsm-devel.i686 samba-winbind libv4l-devel.i686 cups-devel.i686 libtiff-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 gettext-devel.i686 libmpg123-devel.i686
  4. Extract the wine source to any folder.

     tar jxvf wine-1.5.6.tar.bz2
  5. Go to the wine folder and install wine. The easiest way is just to run the provided script wineinstall and just follow the instructions and you’re done!


However, if you prefer to make life more difficult, of course you do, like you want to install patches, then do the usual configure, make, and make install steps.

  1. Go to the wine folder and configure.

  2. Apply the patch that you want and compile. This will take several minutes. Get out, stretch, have a coffee, and put some comments below.

     sudo patch -p1 < file.patch
  3. Install as root.

     su -
     make install
  4. That’s it! Verify to be sure.

     wine --version