安装 Wine 1.5:configure:错误:无法构建 32 位程序,您需要安装 32 位开发库

安装 Wine 1.5:configure:错误:无法构建 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.

我该如何解决这个问题?

答案1

我猜你使用的是 Ubuntu 12.04 x64,它现在支持多架构。换句话说,在 64 位系统上你只能构建 Wine-x64 版本。目前在 Ubuntu 12.04 x64 上构建 32 位 Wine 似乎有太多错误。

因此只需运行此命令:

./configure --enable-win64

答案2

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

答案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

答案4

安装一些软件包(例如 gcc、gcc-c++、flex、bison 等)后,我能够安装 linux“RedHat 6.4”。

使用以下提示运行:

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

make

wine notepad++.exe

相关内容