linux - Wine 无法构建 32 位程序错误

标签 linux ssh centos wine

因此,当我尝试使用以下代码使用 png 配置 wine 时,我在 CentOS 7(64 位)服务器上遇到了这个问题(如下所示):

./configure --with-png

我需要它来运行名为《骑马与砍杀战团》的游戏的特定服务器。 因为当我运行服务器时我得到这个:

err:wincodecs:PngEncoder_CreateInstance Trying to save PNG picture, but PNG support is not compiled in.
fixme:ole:CoCreateInstance no instance created for interface {00000103-a8f2-4877-ba0a-fd2b6645fb94} of class {27949969-876a-41d7-9447-568f6a35a4dc}, hres is 0x80004005

我看过这篇文章:

https://www.centos.org/forums/viewtopic.php?f=13&t=44897

他们说以下代码应该修复它:

yum install glibc-devel.i686

但事实并非如此,至少对我来说不是。我仍然一遍又一遍地收到以下错误:

checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-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 for ld... ld
checking whether gcc -m32 works... no
configure: error: Cannot build a 32-bit program, you need to install 32-bit development libraries.

最佳答案

已解决,我必须运行此代码来安装 32 位开发库才能执行 --with-png 操作。代码来自这篇文章: https://www.centos.org/forums/viewtopic.php?f=48&t=49542

代码:

yum install glibc-devel.i686 dbus-devel.i686 freetype-devel.i686 pulseaudio-     libs-devel.i686 libX11-devel.i686 mesa-libGLU-devel.i686 libICE-devel.i686 libXext-devel.i686 libXcursor-devel.i686 libXi-devel.i686 libXxf86vm-devel.i686 libXrender-devel.i686 libXinerama-devel.i686 libXcomposite-devel.i686 libXrandr-devel.i686 mesa-libGL-devel.i686 mesa-libOSMesa-devel.i686 libxml2-devel.i686 libxslt-devel.i686 zlib-devel.i686 gnutls-devel.i686 ncurses-devel.i686 sane-backends-devel.i686 libv4l-devel.i686 libgphoto2-devel.i686 libexif-devel.i686 lcms2-devel.i686 gettext-devel.i686 isdn4k-utils-devel.i686 cups-devel.i686 fontconfig-devel.i686 gsm-devel.i686 libjpeg-turbo-devel.i686 pkgconfig.i686 libtiff-devel.i686 unixODBC.i686 openldap-devel.i686 alsa-lib-devel.i686 audiofile-devel.i686 freeglut-devel.i686 giflib-devel.i686 gstreamer-devel.i686 gstreamer-plugins-base-devel.i686 libXmu-devel.i686 libXxf86dga-devel.i686 libieee1284-devel.i686 libpng-devel.i686 librsvg2-devel.i686 libstdc++-devel.i686 libusb-devel.i686 unixODBC-devel.i686 qt-devel.i686

关于linux - Wine 无法构建 32 位程序错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35959844/

相关文章:

perl - 使用ssh在另一个脚本中运行perl脚本

linux - 64 位上的 ASLR 和内存布局 : Is it limited to the canonical part (128 TiB)?

linux - Perl:如何通过 IPC::Open3 重定向的 STDOUT/STDERR fhs

linux - 当系统内存大于 8GB 时,为什么 linux 禁用磁盘写缓冲区?

CentOS - 使用 yum 时出错

php - 无法在 CentOs 7 中将 PHP 从 5.4 更新到更高版本

shell - 通过 pid 杀死 uWSGI 的自定义 shell 脚本

mysql - 显示mysql查询+ linux中每个输入的输出

javascript - Python获取post数据调用远程python脚本显示在页面上

linux - ssh:连接到主机 X.X.X.X 端口 22:连接超时