web-dev-qa-db-fra.com

Installation de Wine 1.5: configure: erreur: impossible de construire un programme 32 bits, vous devez installer des bibliothèques de développement 32 bits

    Wine Installer v1.0

Warning !! wine binary (still) found, which may indicate
a (conflicting) previous installation.
You might want to abort and uninstall Wine first.
(If you previously tried to install from source manually, 
run 'make uninstall' from the wine root directory)

We need to install Wine as the root user. Do you want us to build Wine,
'su root' and install Wine?  Enter 'no' to build Wine without installing:
(yes/no) yes
Running configure...

checking build system type... x86_64-unknown-linux-gnu
checking Host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for cpp... cpp
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

Configure failed, aborting install.

Comment puis-je résoudre ce problème?

29
jaorizabal

Je suppose que vous utilisez Ubuntu 12.04 x64 qui prend désormais en charge la multi-architecture. En d'autres termes, sur un système 64 bits, vous ne pouvez générer que la version de Wine-x64. Construire Wine 32 bits sur Ubuntu 12.04 x64 semble trop bogué pour l’instant.

Donc, lancez cette commande:

./configure --enable-win64
28
ergoproxy

Selon: https://stackoverflow.com/a/17748092/108802

Vous devez installer le gcc-multilibs.

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

Ensuite, spécifiez un hôte 32 bits et transmettez des indicateurs de compilation 32 bits:

./configure --Host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
17
Gauthier

essayez d'installer les dépendances 32 bits

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
3

Je suis capable de faire l’installation linux "RedHat 6.4" après avoir installé certains paquets comme gcc, gcc-c ++, flex, bison, etc.

avec en dessous exécuter sur invite:

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

make

wine notepad++.exe

Ubuntu 18.04.1 ayant 64 bits

  • Sudo install flex
  • Sudo install bison
  • ./configure --enable-win64 --without-freetype,
  • makename__
0
Juan Mendez