Ubuntu and Kubuntu

From Wine-Wiki

Jump to: navigation, search

Contents

Ubuntu

Ubuntu users have two options to get an up to date Wine package.

  1. Install via the Winehq APT repository - see the instructions for Debian above. Recommended
  2. Install Wine by using the updated packages in the Ubuntu backports project.

A developer said [May 05]: Since the sourceforge apt repository is woefully limited to just one distribution version, and because it is exceedingly slow and times out a lot, budgetdedicated.com has graciously donated us a blazing fast server to host the fresh Ubuntu packages.

To use the APT repository, simply edit 'sudo gedit /etc/apt/sources.list' and then add the following lines, depending on whether you're running Breezy or Dapper. Upgrading from the Breezy Wine to the Dapper Wine should be as simple as changing the word breezy to dapper, not unlike upgrading Ubuntu itself.

For Breezy:

deb http://wine.budgetdedicated.com/apt breezy main deb-src
http://wine.budgetdedicated.com/apt breezy main

For Dapper:

deb http://wine.budgetdedicated.com/apt dapper main deb-src
http://wine.budgetdedicated.com/apt dapper main


Sometime soon I'll get to work updating the instructions athttp://www.winehq.org/site/download-deb - for now you should ignore them. wine archive

A few days later he posted: The WineHQ APT repository at sourceforge is now officially obsolete

S. Ritchie: For those of you running Ubuntu Feisty, you can now use the new Wine Feisty APT repository. If you're upgrading from Edgy or installing fresh, simply follow the instructions at http://winehq.org/site/download-deb - the old edgy repository will be overwritten by the command to install the Feisty one.

A user jun 08 asked; Can I update wine to 1.0-rc4 without upgrading Ubuntu 7.10 to Ubuntu Hardy (8.04)? How can I do this?

A.English: You'd have to compile from source. Scott has said he won't provide 1.0 packages for gutsy (though may backport it once 1.0 is finalized).

Further Reading

Because this is a wiki we thank those who help with keeping it up to date. Please add a date by your comments.


Curently [May 2008] a number of Ubuntu users apear to be having sound issues. wine user 2008 may:I just installed Ubuntu 8.04 clean and Wine 1.0-rc1. I followed all the directions and i think I've done everything right because i managed to play wow without any problems except one (well moderate fps too but i can config that). The sound doesn't work at all. In the wine config audio devices, I have selected the ALSA drivers but even with OSS it doesn't work. I tried emulation too but that doesn't work too. I noticed that the Audio test showed a message "Audio test failed" so i guess this isn't wow problem but wine's. Can anyone give me any hints on what to do?

Vitamin: Kill pulseaudio. It conflicts with Wine.

Ubuntu and Kubuntu Building Wine from source

Jun 08 wine user Z. Brown:If you're worried about getting the latest snapshot/unstable release etc, then you're best bet is to play in git or building source releases as they're released. IMHO, wine is a dish best served fresh. Improvements are made quickly in wine so distro's aren't able to keep up. [...] The one perk I can think of for Ubuntu (and somewhat Debian) is Dan Kegel's script for installing all the packages needed to build wine. Its not much work to do it yourself, but I'm lazy. You can find those at...


A user noted he could not build wine on Ubuntu. C. Spencer [wine devel feb 2008] explained: You do not have the gcc compiler installed. On Ubuntu you will need to install build-essentials (I think that's what it's called), and also run 'sudo apt-get build-dep wine'. I'm not sure what the process is on Debian.

R. Dunn: [wine devel feb 2008] See http://wiki.winehq.org/Recommended_Packages. Specifically:

The easiest way to set up an Ubuntu system is to use a shell script that installs the above packages:

After which, you can follow the instructions at http://www.winehq.org/site/git to get the lastest version of the code.


configure:2382: checking for C compiler default output file name
configure:2386: gcc    conftest.c  >&5 /usr/bin/ld: crt1.o: No such file:
No such file or directory collect2: ld returned 1 exit status
configure:2389: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME "Wine"
| #define PACKAGE_TARNAME "wine"
| #define PACKAGE_VERSION "0.9.15"
| #define PACKAGE_STRING "Wine 0.9.15"

M. Meissner [Jun 06]:[/usr/bin/ld: crt1.o: No such file:] He needs the glibc development package (glibc-devel called on some RPM systems). wine archive

Kubuntu troubleshooting x64

A user reported a problem [Oct 06]:

/usr/bin/ld: skipping incompatible /usr/lib/libGL.so when searching for -lGL
/usr/bin/ld: cannot find -lGL

How does .configure determine that libGL is incompatible?

R. Shearman: When it's a 64-bit library, whereas wine is 32-bit. wine archive


Aug 06 E. Jay: When compiling Wine on 64-bit Kubuntu 6.06LTS (using the instructions found at http://wiki.winehq.org/WineOn64bit#head-56206e8bc74083807ffe06ccb471d3f964cb670a) I received a spurious error regarding freetype-config:

  configure: WARNING: Your system appears to have the FreeType 2 runtime libraries
  configure: WARNING: installed, but 'freetype-config' is not in your PATH.

I also had to modify the .configure script. The unicode-related section directs it to use the libraries in /usr/lib (whereas I needed it to be using /usr/lib32). If you don't modify this section, make will fail when it tries to link the 64-bit versions. wine archive

Other than these two minor annoyances, it compiles quite well on 64-bit.

Jun 06 D. Anderson provided a step-by-step guide. According to S. Richie it was basically rewriting the build script to work on AMD-64 for the packages. D. Riekenberg added this to the official wiki: http://wiki.winehq.org/WineOn64bit

May06 David reported: Compiling wine failed as 4979 says, no libfreetype.so that is compatible. The problem is in the m32 libfreetype. /usr/lib32 is searched (as /usr/lib/../lib32) by gcc automatically with -m32. The libfreetype developer(s) provided libfreetype.so.6.3.8 and link libfreetype.so.6 ->libfreetype.so.6.3.8 However they forgot to create the symlink

libfreetype.so -> libfreetype.so.6

Create this by hand in /usr/lib32 and regrettably wine still will not build as 4 externs are left unresolved: :inflate, inflateReset,inflateEnd, inflateInit2. This appears to also be a libfreetype issue. It's been reported several times in various contexts, google for 'libfreetype inflate' to see them.

M. Meissner: Looks like a missing NEEDED libz.so.1 in the libfreetype.so.6. Add -lz to the link lined.

David added: I forgot to mention it, but the DT_NEEDED for libz.so does exist in libfreetype.so.6. Adding export LDFLAGS="-Wl,-rpath,/usr/lib32" before building helps. (-rpath-link would also work for linking, but I prefer to get that rpath recorded in the resulting binary, thus I use -rpath). The WineOn64bit web page suggests (in the Debian advice) creating symlinks from libfreetype.so and libz.so to libfreetype.so.6 and libz.so.1 respectively. (in the /usr/lib32 directory). These are also essential. Very helpful web page.wine archive

Ubuntu troubleshooting x64

May 06

checking for x86_64-linux-gnu-gcc... gcc -m32 checking for C compiler default output file name...
configure: error: C compiler  cannot create executables
See `config.log' for more details.

N. Skrypuch : He was trying to build it as a 32-bit application (see gcc -m32), but he's missing all of the 32-bit libs to do so.[...] You need to install the 32-bit compatibility libs to build Wine ... wine archive

S. Richie": S. Richie: Unfortunately, all of Wine's libs aren't available in 32 bit packages yet - I've filed a bug in Ubuntu to get them included https://launchpad.net/distros/ubuntu/+source/ia32-libs/+bug/43320

J. Green: I've found that the only truly clean way to build Wine in Ubuntu AMD64 is to use a chroot environment. Google on ubuntuforms.org for details on how to set that up. The biggest benefit of that method (besides the fact that it "just works" [eventually]) is that you can keep up to date with security updates for your 32-bit packages. The way you're doing it manually, you are now responsible for updating your 32-bit libs each time there is a security update. Whereas, with a chroot, you can just run "sudo apt-get update && sudo apt-get upgrade".

It would be really nice if Ubuntu had a pre-packaged Wine[-dev] environment for 64-bit systems (which would include all of the necessary 32-bit libs placed in the correct locations), but no one has taken the effort yet AFAIK.


A user reported difficulties in compiling wine: after some symlinking with the ia32-libs and a change in wine (SYS_sigaction -> SYS_rt_sigaction (read this in a very old post from 2004 or so) it finally compiled (using gcc-4.0 -m32).

This was surprising as there are numerous reports of wine on x64 machines.

A. Julliard: If you need to change wine it means your 32-bit build environment is broken, you are not using the correct 32-bit kernel headers.

Another Developer highlighted an area to look at: [it] needs a correct 32bit enviroment... In your case it is likely missing the 2 /usr/include/asm-XXX/ directories, seperated by WORDSIZE #ifs in /usr/include/asm/ wrappers. (a glibc problem). Also 32bit development and runtime libraries must correctly be setup. wine archive <nowiki>Insert non-formatted text here</nowiki>

Forum Comments

S. Ritchie May 08: To prevent conflicts when upgrading to 8.04, older releases will no longer be getting Wine updates. Ubuntu Hardy will be released this Thursday, and contains many fixes that also affect Wine, such as support for some missing libraries in the 64 bit version.


Ubuntu Wine Troubleshooting

Sound

V. Margolen May 2008 bug 12978: If you have Ubuntu 8.04 - you have to kill/disable pusleaudio. It conflicts with Wine and any other programs that use ALSA.

Other

[Jun 2006 Winedevel] D. Jovanovic On Ubuntu 7.04, versions of wine before around 0.9.24 die on startup with an undebuggable segmentation fault.[...]the patch at http://www.winehq.org/pipermail/wine-cvs/2006-November/027508.html allows earlier versions of wine to run successfully.

[Oct 05] what i get is:

err:module:load_builtin_dll failed to load .so lib for builtin L"winex11.drv": /usr/lib/libSM.so.6: undefined symbol:

U. Bonnes: You have a mixup in library. As some parts of your X11 system don't match, winex11.drv is not loaded and wine falls back on the ttydriver. Try to fix your setup. wine archive

External Links

Tutorial Video

http://www.youtube.com/watch?v=Q564OEmseXE&NR=1 Running Windows Applications on Linux Ubuntu with Wine (UTube software tutorial)

Personal tools