Wine - Installation On Linux
Wine - Installation On Linux
Contents
1 Disclaimer
2 Overview/Background Information
3 Pre-requirements
4 Installing Wine
4.1 Get to know the environment
4.2 The easiest way (1): yum
4.3 The easiest way (2): apt
4.4. The easiest way (3): emerge
4.5. The easiest way (4): FreeBSD ports
4.6. The easiest way (5): NetBSD packages
4.7 The easy way: rpm
4.8 The hard way: compilation from source
5 Testing Wine
6 Installing Tibia
6.1 Get the latest client from www.tibia.com
6.2 Install Tibia
7 Running Tibia
7.1 First test
7.2 Create a more comfortable way to start Tibia
8 Known Issues
8.1 General warning
8.2 No shadow effects
8.3 Debug assertions occur when closing the client
8.4 Wine is throwing many errors in the console
8.5 Wine crashes when closing the client
9 Troubleshooting
9.1 Compilation fails
9.1.1 Missing dependencies
9.2 Tibia is installed but does not start
9.2.1 "Error 1: Cannot open file: Tibia.dat. Please re-install the program."
9.3 Wine is installed but does not work
9.3.1 Wine is complaining about a missing socket
9.4 Tibia update fails
9.4.1 Tibia is complaining that it cannot delete the old Tibia.exe
9.5 Performance issues
9.5.1 Framerate (fps) is low
1 Disclaimer
You agree that you use these instructions at your sole risk. We provide the instructions, the
software, the game, and all other services "as is". We disclaim all warranties or conditions of
any kind, expressed, implied or statutory, including without limitation the implied warranties of
title, non-infringement, merchantability and fitness for a particular purpose. We do not ensure
continuous, error-free, secure or virus-free operation of the software, the game, or your
account.
We are not liable for any lost profits or special, incidental or consequential damages arising
out of or in connection with the game, including, but not limited to, loss of data, items,
accounts, or characters from errors, system downtime, or adjustments of the gameplay.
Playing Tibia via Wine is not supported. The customer support will most likely not be able to
help you if installing or running Tibia via Wine fails. Please ask on the help board if problems
occur that you cannot fix yourself. Feedback regarding this document, success or failure is
very much appreciated.
2 Overview/Background Information
The Tibia client has been developed for Windows using the DirectX-API. It is not possible to
run a Windows application on a native Linux environment.
Wine is an Open Source implementation of the Windows API on top of X and Unix.
Think of Wine (http://winehq.org) as a compatibility layer for running Windows programs.
Wine does not require Microsoft Windows as it is a completely free alternative implementation
of the Windows API consisting of 100% non-Microsoft code, however, Wine can optionally
use native Windows DLLs if they are available. Wine provides both a development toolkit for
porting Windows source code to Unix as well as a program loader, allowing many unmodified
Windows programs to run on x86-based Unixes, including Linux, FreeBSD, and Solaris.
At this point this how-to steps in and explains how to run Tibia on Linux using Wine.
3 Pre-requirements
• a PC running any x86-based actual flavor of Linux: Fedora (5+), CentOS (5+), SuSE
(10+), OpenSuSE (10.2+), Slackware, Debian (Etch), Gentoo (2006.1+), FreeBSD
(5.5+), NetBSD (3+), or Solaris 86 (9+).
• a working X11-environment. (X11 is a graphical window system)
• a working internet connection
• root access
The installation and configuration of your operating system, including anything except Wine
and Tibia itself, is beyond the scope of this how-to.
4 Installing Wine
Depending on the distribution you are using, there are different ways to install Wine on your
PC. Please study this part very carefully and make sure that you understand what you have to
do before you start to install something. Otherwise you may damage your operating system
environment!
In general there are 4 completely different ways to install Wine:
• using precompiled binaries via rpm/dpkg and an installation system
• using precompiled binaries via rpm/dpkg without an installation system
• compiling from source using a build system
• compiling from the source, doing all work by yourself
yum/rpm
apt/rpm
portage
packages
rpm
apt/dpkg
dpkg
ports
Package available
yast/rpm
Fedora X X X rpm
SuSE X X X rpm
CentOS X X X rpm
OpenSuSE X X X X rpm
Debian X X X dpkg
Slackware X tar.gz
Gentoo X X -
FreeBSD X X tgz
NetBSD X X tgz
Solaris 86 X X tgz
Now try to figure out which will be the best installation option for you.
This part will only work if your system is using rpm and yum is installed. (RedHat, Mandriva,
CentOS, etc.)
• become root
open a shell command prompt
type: su -↵
enter the root password of your system
• install Wine
type: yum install wine↵
check the output and confirm the installation
It is possible that your yum-repository does not contain a Wine package. In this case an error
message will appear
Cannot find a package matching wine
No actions to take
If this is the case, you have to choose the rpm-installation.
This part will only work if your system is using apt. (Debian, Ubuntu, some flavors of
OpenSuSE)
• become root
open a shell command prompt
type: su -↵
enter the root password of your system
• install Wine
type: apt-get install wine↵
check the output and confirm the installation
Depending on your operating system you might need to add the Wine-repository to your
/etc/apt/sources.list manually:
• open a shell command prompt
• open /etc/apt/sources.list with an editor (vi, emacs, joe, ...)
• add the following 2 lines to the list of your repositories:
deb http://wine.sourceforge.net/apt/ binary/
deb-src http://wine.sourceforge.net/apt/ source/
• save the changes and exit the editor
• type: apt-get update
Now you can (re)try the steps above and install Wine.
This part will only work if your system is using emerge. (Gentoo)
• become root
open a shell command prompt
type: su -↵
enter the root password of your system
• install Wine
type: emerge -a wine↵
check the output and confirm the installation
Since emerge based systems compile from source, you will have to be patient watching your
system downloading, unpacking, patching, compiling, and installing Wine. Be prepared to wait
up to two hours until everything is finished.
It is a good idea to update your portage tree before starting to emerge Wine
emerge –sync↵
will do the trick!
This part will only work if your system is using ports. (FreeBSD)
There are two ways to install Wine. Let's try the simplest first:
• become root
open a shell command prompt
type: su -↵
enter the root password of your system
• install Wine
type: portinstall -P wine↵
If your system tells you something like “csh: portinstall: not found”, try
cd /usr/ports/emulators/wine
make install
If this fails, too, refer to the “FreeBSD Handbook” on how to install ports and retry the second
step! The “FreeBSD Handbook” is available at http://www.freebsd.org/handbook/index.html
Since ports compile from source, you will have to be patient watching your system
downloading, unpacking, patching, compiling, and installing wine. Be prepared to wait up to
two hours until everything is finished.
It is a good idea to update your ports collection before building Wine. Please consult the
“FreeBSD Handbook” on how to set up and use cvsup!
This part will only work if your system is using packages. (NetBSD, sometimes SunOS and
Solaris)
• become root
open a shell command prompt
type: su -
enter the root password of your system
• install Wine
cd /usr/pkgs/emulators/wine
make install
If this fails, refer to the NetBSD documentation on how to install packages and retry!
Since packages compile from source, you will have to be patient watching your system
downloading, unpacking, patching, compiling, and installing wine. Be prepared to wait up to
two hours until everything is finished.
It is a good idea to update your packages tree before building Wine. Please consult the
NetBSD documentation on how to set up one of the various ways available for updating!
It might be possible that your system is missing certain dependencies to be able to install
Wine. In this case you have to resolve the problems before you can install Wine. Wine should
not require any packages that are not part of the distribution.
It might be possible that your system is missing certain dependencies to be able to install
Wine. In this case you have to resolve the problems before you can install Wine. Wine should
not require any packages that are not part of the distribution.
This is quite difficult and error-prone if you are new to Linux and never worked with sources
and compilers before. Make sure to read everything carefully and follow all advices
accurately. Otherwise you might damage your system seriously.
• download the most recent Wine-release
go to http://winehq.org/site/download
scroll down to the bottom of the page
click on the sourceforge.net-link with the description "Our official source release
site." (a new browser-window/tab should open up now presenting the last
releases)
click on the topmost Download wine-<release>.tar.bz2-link
choose a location geographically close to you
save the file
• unpackage, compile and install the sources
open a shell command prompt
type: tar xzf ~/download/Wine-*.tar.gz
type: cd wine-*
type: ./configure --disable-debug
(Now many lines will be scrolling through your console. No worries, that is
alright.)
wait until the configure-process has been finished, this might take a while
check the output:
➢ if everything works fine, you should see "Configure finished. Do 'make
depend && make' to compile Wine." as very last output from configure
➢ if this is not the case (any kind of error occurred), check the
Troubleshooting section for help. Most likely some important
requirements for compiling Wine are missing like gcc (a compiler) or
anything related.
if no error occurred, type: make depend && make
(Again many lines will be scrolling through your console.)
wait until the compilation has been finished, this might take several minutes
check the output:
➢ if everything works fine, you should see "Wine build complete."
➢ if not, check the Troubleshooting section.
become root, type: su
install Wine, type: make install
5 Testing Wine
• open a command prompt
• type: wine
• check the output, you should see something like:
Wine 20050524
Usage: wine PROGRAM [ARGUMENTS...] Run the specified program
wine --help Display help and exit
wine --version Output version information and exit
• if any errors occur - check the Troubleshooting section
6 Installing Tibia
• go to https://secure.tibia.com/account/?subtopic=downloadclient
• read and accept the license agreement
• choose Tibia (for Windows)
• click on the download link and save the file
Congratulations!
7 Running Tibia
8 Known Issues
Tibia is a native Windows application. Please note that Wine is still in development (just
entered beta-state) and does not fully implement all Windows functions yet. Chances are high
that you may stumble on more or less serious problems:
• causing your client to crash
• distorting/screwing the display of certain parts of the Tibia client
• distorting/screwing the display of certain parts of your X window system
• causing certain functions of your operating system to fail
• causing your operating system to hang/crash
Please keep in mind that you use the software at your sole risk, and that these instructions
are provided as is, disclaiming all warranties and conditions of any kind. Playing Tibia via
Wine is NOT supported officially.
• Tibia does not display light effects, you see black dots only
This is a known issues and caused by Wine. It is not an error and there is currently no
known way to enable light effects. It might be possible that Cedega (a commercial
branch of Wine with enhanced DirectX capabilities) or future Wine-releases are able to
display light effects.
• It might happen that different debug assertions occur when you log off, close the client,
switch characters, etc.
This is a known issue and caused by Wine. It is not an error and usually should not
affect the gameplay.
• It might happen that several error messages appear in the console where you started
Tibia.
fixme:richedit: ...
err:menubuilder: ...
err:ddraw: ...
...
These are known issues and caused by Wine. They are generally harmless and should
not affect the gameplay.
• When closing the client Wine may crash, prompting you to the debug console.
This is a known issue and should not affect the gameplay. Just close the message box
or kill the debug session. Such crashes can be prevented by closing the client via the
exit button.
9 Troubleshooting
Compiling Wine from source requires to have a few programs installed. If any errors occur
telling you that something is missing, check if the following tools are installed:
• gcc (gnu C compiler)
• automake/autoconf
Usually you will get a rather detailed error message telling you what is wrong. Follow the
given advices.
9.2.1 "Error 1: Cannot open file: Tibia.dat. Please re-install the program."
You forgot to cd to the directory where Tibia has been installed to. Please type
cd <path to where Tibia has been installed to>
and restart Tibia.
9.3 Wine is installed but does not work
This might occur when you compile Wine from source. In this case you might need to start
wineserver prior to running Wine. Example:
wineserver -p
wine Tibia.exe engine 0
The option "-p" runs wineserver as a daemon, allowing you to start multiple Wine sessions
without restarting the wineserver each time you want to use Wine. You might want to add this
line to your Tibia startup script or optionally to your operating system start scripts, e.g.
/etc/rc.local.
When the client is getting updated, it is likely that the update process fails. The Update
program might be unable to delete the old Tibia.exe before installing the new Tibia.exe. In this
case you have to change to your Tibia-directory manually
cd <path to your Tibia directory>
delete the old Tibia.exe
rm Tibia.exe
move Tibia.bak
mv Tibia.bak Tibia.exe
Using an accelerated driver may improve your framerate. Visit your vendor's website for
further information.