问题描述
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.
我该如何解决这个问题?
最佳答案
我猜您使用现在支持multi-architecture的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
Then […] specifyiong a 32-bit host and passing 32-bit compilation flags:
./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