Установка Wine 1.5: настройка: ошибка: невозможно собрать 32-битную программу, вам нужно установить 32-битные библиотеки разработки

    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.

Как мне решить эту проблему?

31
задан 19 June 2015 в 00:41

5 ответов

Согласно: https://stackoverflow.com/a/17748092/108802

Вам необходимо установить gcc-multilibs.

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

Затем [...] задаются 32-битный хост и передаются 32-битные флаги компиляции:

./configure --host=i686-linux-gnu "CFLAGS=-m32" "CXXFLAGS=-m32" "LDFLAGS=-m32"
0
ответ дан 19 June 2015 в 00:41

Ubuntu 18.04.1 с 64-битным

  • sudo install flex
  • sudo install bison
  • ./configure --enable-win64 --without-freetype,
  • make
0
ответ дан 19 June 2015 в 00:41

Я полагаю, вы используете Ubuntu 12.04 x64, которая теперь поддерживает мульти-архитектуру. Другими словами, в 64-битной системе вы можете собрать только версию Wine-x64. Сборка 32-битного Wine на Ubuntu 12.04 x64 кажется слишком глючной.

Так что просто запустите эту команду:

./configure --enable-win64
0
ответ дан 19 June 2015 в 00:41

попробуйте установить 32-битные зависимости

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
0
ответ дан 19 June 2015 в 00:41

Я могу выполнить установку Linux "RedHat 6.4" после установки некоторых пакетов, таких как gcc, gcc-c ++, flex, bison и т.д.

с запуском ниже по приглашению:

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

make

wine notepad++.exe
0
ответ дан 19 June 2015 в 00:41

Другие вопросы по тегам:

Похожие вопросы: