安装Wine 1.5:配置:错误:无法构建32位程序,需要安装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.

我该如何解决这个问题?

Answers:


30

我猜您使用的是现在支持多体系结构的Ubuntu 12.04 x64。换句话说,在64位系统上,您只能构建Wine-x64版本。就目前而言,在Ubuntu 12.04 x64上构建32位Wine似乎还有些漏洞。

因此,只需运行以下命令:

./configure --enable-win64

6
那不是建立wine64而不是wine吗?我无法使用wine64运行Windows 32位程序。
Gauthier

1
当今葡萄酒需要flexbison所以sudo apt install flex bison首先但是的,这是最好的答案。
tatsu

19

按照: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"

在我的情况下,这仍然导致大量未满足的32位依赖关系,易于拒绝安装。我认为安装用于编译32位内容的虚拟Linux机器将不那么麻烦。
Hubro

1
这是一个更好的答案,因为有时wine64无法运行32位应用程序
Brandon Kuczenski

3

尝试安装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

具有64位的Ubuntu 18.04.1

  • sudo install flex
  • sudo install bison
  • ./configure --enable-win64 --without-freetype
  • make
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.