In one of my projects, I need to install custom build of wine to several computers running ubuntu.
Hence, I had to get the sources, apply the patch files and then compile the source. Doing this for 1 computer is okay, however repeating this to several computers is a huge waste of time.
The solution is compiling once and then build a debian package (*.deb), so for the other computers we just install the debian package file. Fortunately, making a debian package is very-very easy. Here is what I did:
Hence, I had to get the sources, apply the patch files and then compile the source. Doing this for 1 computer is okay, however repeating this to several computers is a huge waste of time.
The solution is compiling once and then build a debian package (*.deb), so for the other computers we just install the debian package file. Fortunately, making a debian package is very-very easy. Here is what I did:
- Install wine recommended packages:
$ wget http://winezeug.googlecode.com/svn/trunk/install-wine-deps.sh
$ chmod 755 install-wine-deps.sh
$ sudo ./install-wine-deps.sh -
Install checkinstall:
$ sudo apt-get install checkinstall
- Get the wine source:
$ wget http://ibiblio.org/pub/linux/system/emulators/wine/wine-1.3.38.tar.bz2
$ tar -xf wine-1.3.38.tar.bz2 - Patch the wine sources
- Configure and compile:
$ cd wine-1.4-rc1
$ ./configure - Create the deb file with checkinstall:
In this step, instead of runsudo make install
, we run checkinstall to make the .deb file:
$ sudo checkinstall
checkinstall will present some parameter. Modify the parameters as you like and then press ENTER to continue. At the end of the process, wine will be installed in your system and as a bonus you will have a .deb file which can be installed on other computers without the tedious process of compiling.
Comments
Post a Comment