wine 运行任何exe都报 Bad EXE format for XXX.exe

Wine、Cedega、CrossOver 等配置
回复
wangwpf
帖子: 24
注册时间: 2014-04-11 14:41
系统: ubuntu

wine 运行任何exe都报 Bad EXE format for XXX.exe

#1

帖子 wangwpf » 2014-04-14 16:07

我的系统是ubuntu13.10, 按照 http://www.linuxidc.com/Linux/2013-10/91667.htm 这个贴子中的方法安装了wine 1.7.16由于第一次没有安装帖子前半部分的依赖库,导致编译出来的wine运行有问题。就重新安装了那些依赖包后,重新./configure 再make 及make install. 现在运行任何exe都报 wine:Bad EXE format for XXX.exe, 只有内置的notepad与internetExplorer可以正常使用。

尝试了将~/.wine目录删除掉再运行winecfg, 问题依旧

另外, config的时候用了win64的参数: ./configure --enable-win64


不知道哪位遇到过?还请赐教。
头像
astolia
论坛版主
帖子: 6542
注册时间: 2008-09-18 13:11

Re: wine 运行任何exe都报 Bad EXE format for XXX.exe

#2

帖子 astolia » 2014-04-15 9:33

wine跑32位和跑64位的好像是分开的,你要么是用32位wine跑64位程序,要么是64位wine跑32位程序。

另外如果你不是要给wine打上一些补丁,没必要自己费时费力编译wine,直接用ppa源就行了
https://launchpad.net/~ubuntu-wine/+archive/ppa
liuyc
帖子: 40
注册时间: 2012-07-25 10:49

Re: wine 运行任何exe都报 Bad EXE format for XXX.exe

#3

帖子 liuyc » 2014-04-15 21:09

若只需要安装新版,参考楼上ppa源

------

./configure --enable-win64 这样只支持64位程序

如需32/64位共存,参考http://wiki.winehq.org/Wine64

代码: 全选

cd wine-1.7.16
mkdir build
cd build
mkdir wine64
cd wine64
../../configure --enable-win64
make
cd ..
mkdir wine32
cd wine32
../../configure --with-wine64=../wine64
make
#make install
#cd ../wine64
#make install
本论坛注册登陆有问题? 删cookie

http://liuycme.tk-----MyWebsite
curitis
帖子: 1
注册时间: 2014-02-06 18:39
系统: ubuntu

Re: wine 运行任何exe都报 Bad EXE format for XXX.exe

#4

帖子 curitis » 2014-07-13 11:23

liuyc 写了:若只需要安装新版,参考楼上ppa源

------

./configure --enable-win64 这样只支持64位程序

如需32/64位共存,参考http://wiki.winehq.org/Wine64

代码: 全选

cd wine-1.7.16
mkdir build
cd build
mkdir wine64
cd wine64
../../configure --enable-win64
make
cd ..
mkdir wine32
cd wine32
../../configure --with-wine64=../wine64
make
#make install
#cd ../wine64
#make install
在运行了楼上的../../configure --with-wine64=../wine64命令后,终端中提示:

configure: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
然后下一步无法执行make了,提示找不到makefile.
这个问题我按照国内和国外的许多论坛上的解决方法安装了许多包但问题依旧,请问如何解决。
头像
lilydjwg
论坛版主
帖子: 4252
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: wine 运行任何exe都报 Bad EXE format for XXX.exe

#5

帖子 lilydjwg » 2014-07-17 21:44

curitis 写了:在运行了楼上的../../configure --with-wine64=../wine64命令后,终端中提示:

configure: error: X 32-bit development files not found. Wine will be built
without X support, which probably isn't what you want. You will need
to install 32-bit development packages of Xlib/Xfree86 at the very least.
Use the --without-x option if you really want this.
然后下一步无法执行make了,提示找不到makefile.
这个问题我按照国内和国外的许多论坛上的解决方法安装了许多包但问题依旧,请问如何解决。
缺什么库安装什么库,记得要安装 32 位版本的。自己编译,特别是在 Ubuntu 这种拆包比较细的系统上可不容易。
搞了两天wine真是醉了
帖子: 1
注册时间: 2014-09-24 14:31
系统: ubuntu12.04 64bit

Re: wine 运行任何exe都报 Bad EXE format for XXX.exe

#6

帖子 搞了两天wine真是醉了 » 2014-09-24 15:41

楼主的问题解决了么?
求最终解决方案,我现在也遇到了同样的问题
回复