安装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. 

我该如何解决这个问题?

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

所以只需运行此命令:

 ./configure --enable-win64 

根据: 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位依赖项

 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 

安装了一些软件包如gcc,gcc-c ++,flex,bison等后,我可以安装linux“RedHat 6.4”。

以下运行提示:

 ./configure --enable-win64 --without-freetype make wine notepad++.exe