0% found this document useful (0 votes)
113 views4 pages

WineHQ Troubleshooting

The summary provides instructions for installing WineHQ packages on Debian-based systems to run Windows .exe files: 1. Enable 32-bit packages and download and install the WineHQ repository key. 2. Add the WineHQ repository to the sources.list file based on your Debian version. 3. Update packages and install either the winehq-stable, winehq-devel, or winehq-staging package. 4. Files are installed to /opt/wine and menu items are not created, but can be recreated manually. Additional dependencies like wine-gecko may need to be downloaded when creating new wine prefixes.

Uploaded by

toneboy1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
113 views4 pages

WineHQ Troubleshooting

The summary provides instructions for installing WineHQ packages on Debian-based systems to run Windows .exe files: 1. Enable 32-bit packages and download and install the WineHQ repository key. 2. Add the WineHQ repository to the sources.list file based on your Debian version. 3. Update packages and install either the winehq-stable, winehq-devel, or winehq-staging package. 4. Files are installed to /opt/wine and menu items are not created, but can be recreated manually. Additional dependencies like wine-gecko may need to be downloaded when creating new wine prefixes.

Uploaded by

toneboy1
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

WineHQ packages – For running

Windows .exe s
The WineHQ repository key was changed on 2018-12-19. If you downloaded and
added the key before that time, you will need to download and add the new key and run
sudo apt update to accept the repository changes.

The WineHQ packages for Debian 10 and later require libfaudio0 as a dependency.
Since the distro does not provide it for Debian 10, users of that version can download
libfaudio0 packages from the OBS. See https://forum.winehq.org/viewtopic.php?
f=8&t=32192 for details.

Raspbian users: the WineHQ packages are for x86 architecture only; they cannot be
installed on an ARM system.

Enable 32 bit packages (if you haven't already):

sudo dpkg --add-architecture i386

Download and install the repository key:

wget -nc https://dl.winehq.org/wine-builds/winehq.key


sudo apt-key add winehq.key

Add the repository to /etc/apt/sources.list or create a *.list under /etc/apt/sources.list.d/ with


the following content:

For this version: Add this content to /etc/apt/sources.list:

Debian 9 (Stretch) deb https://dl.winehq.org/wine-builds/debian/ stretch main

Debian 10 (Buster) deb https://dl.winehq.org/wine-builds/debian/ buster main

Debian Testing (currently Bullseye) deb https://dl.winehq.org/wine-builds/debian/ bullseye main

Update packages:

sudo apt update

Then install one of the following packages:

sudo apt install --install-recommends winehq-stable


Stable branch

sudo apt install --install-recommends winehq-devel


Development branch

sudo apt install --install-recommends winehq-staging


Staging branch
If apt complains about missing dependencies, install them, then repeat the last two steps
(update and install).

Some notes on the WineHQ packages:

 Files are installed to /opt/wine-devel or /opt/wine-staging.

 Menu items are not created for Wine's builtin programs (winecfg, etc.), and if you are
upgrading from a distro package that had added them, they will be removed. You can
recreate them yourself using your menu editor.

 WineHQ does not at present package wine-gecko or wine-mono. When creating a new wine
prefix, you will be asked if you want to download those components. For best compatibility,
it is recommended to click Yes here. If the download doesn't work for you, please follow the
instructions on the Gecko and Mono wiki pages to install them manually.

Trouble shooting WINE in no particular order:


Installing Wine 1.5: configure: error: Cannot build a 32-bit
program, you need to install 32-bit development libraries
********************************************************

./configure --enable-win64
********************************************************

You need to install the gcc-multilibs.

sudo apt-get install gcc-multilib g++-multilib

Then [...] specifyiong a 32-bit host and passing 32-bit compilation flags:

./configure --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-


m32"

********************************************************

try installing the 32 bits dependencies


sudo apt-get install ia32-libs
sudo apt-get install gcc-multilib g++-multilib
sudo apt-get install xserver-xorg-dev:i386 libfreetype6-dev:i386

********************************************************

./configure --enable-win64 --without-freetype

make

wine notepad++.exe

********************************************************

 sudo install flex


 sudo install bison
 ./configure --enable-win64 --without-freetype,
 make

********************************************************

Flex (The fast lexical analyzer):

According to flex.sourceforge.net,

"Flex is a tool for generating scanners. A scanner, sometimes called a tokenizer, is a


program which recognizes lexical patterns in text. The flex program reads user-specified
input files, or its standard input if no file names are given, for a description of a scanner to
generate. The description is in the form of pairs of regular expressions and C code, called
rules. Flex generates a C source file named, "lex.yy.c", which defines the function yylex().
The file "lex.yy.c" can be compiled and linked to produce an executable. When the executable
is run, it analyzes its input for occurrences of text matching the regular expressions for each
rule. Whenever it finds a match, it executes the corresponding C code."

Before starting, please check to see if there is a latest version available to download. Visit
http://flex.sourceforge.net/ to find out about the available versions. IMPORTANT: See
"Configuring Ubuntu Linux After Installation" to install the development tools required to
compile and install flex from source code.

Steps to download, compile, and install are as follows. Note: Replace 2.5.33 with your
version number:

 Downloading Flex (The fast lexical analyzer):

Run the command below,


wget http://prdownloads.sourceforge.net/flex/flex-2.5.33.tar.gz?
download

 Extracting files from the downloaded package:

tar -xvzf flex-2.5.33.tar.gz

Now, enter the directory where the package is extracted.

cd flex-2.5.33

 Configuring flex before installation:

If you haven't installed m4 yet then please do so. Click here to read about the
installation instructions for m4. Run the commands below to include m4 in your
PATH variable.

PATH=$PATH:/usr/local/m4/bin/

NOTE: Replace '/usr/local/m4/bin' with the location of m4 binary. Now, configure


the source code before installation.

./configure --prefix=/usr/local/flex

Replace "/usr/local/flex" above with the directory path where you want to copy the
files and folders. Note: check for any error message.

 Compiling flex:

make

Note: check for any error message.

 Installing flex:

As root (for privileges on destination directory), run the following.

With sudo,

sudo make install


********************************************************

You might also like