Centos 7 dedicated server - bad exe format

Questions about Wine on Linux
Locked
kr4ft3r
Newbie
Newbie
Posts: 4
Joined: Thu Jul 02, 2015 8:24 am

Centos 7 dedicated server - bad exe format

Post by kr4ft3r »

Hello.

Managing CentOS 7 over ssh (putty on windows).

I'm trying to run a windows based dedicated game server over ssh, according to tutorials this is quite possible using Wine.

I really googled a lot but keep hitting the wall, maybe someone can help me out or hint something useful at least.

All I can gather is that problem is maybe in the distribution I chose ( CentOS 7, 64bit) and/or some problems with version of Wine available from yum (I got it with yum install wine).

This is what I'm getting:

Code: Select all

fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
wine: Bad EXE format for Z:\home\(username...)\Warband_Server\Mount&Blade Warband Napoleonic Wars Dedicated\mb_warband_dedicated.exe.
Why would it report bad exe format? And that MountMgr failed thing?

Shell script I made to run it:

Code: Select all

#!/bin/sh
wine mb_warband_dedicated.exe -r NW_Sample_Battle.txt -m Napoleonic Wars
A bit of a Linux noob so please don't mind if I omitted some important information, please let me know what more info do you need and I'll try to get it as I would really like to get this working.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Centos 7 dedicated server - bad exe format

Post by dimesio »

kr4ft3r
Newbie
Newbie
Posts: 4
Joined: Thu Jul 02, 2015 8:24 am

Re: Centos 7 dedicated server - bad exe format

Post by kr4ft3r »

Thanks for your help.

I went through pain of trying to compile 32bit wine as described here https://www.centos.org/forums/viewtopic ... 48&t=49542 , but had something preventing me from building openal32, which of course in the end resulted in this error during compile:

Code: Select all

RPM build errors:
    File not found: /usr/local/bin/rpmbuild/BUILDROOT/wine-1.7.22-1.el7.centos.i386/usr/lib/wine/openal32.dll.so
I guess this is way over my head and should forget about using CentOS 7. Maybe I'll try Ubuntu 14 x64 for server.
Thanks again.
kr4ft3r
Newbie
Newbie
Posts: 4
Joined: Thu Jul 02, 2015 8:24 am

Re: Centos 7 dedicated server - bad exe format

Post by kr4ft3r »

Can someone please confirm that I wouldn't run into same problem if I used Linux 3.x Ubuntu 14.04 LTS x64 distro?
Or maybe I should scrap the idea of using x64 system at all, seeing that this dedicated server is 32bit app?
Options I have are:
Linux 2.6 CentOS 6.3 x86
Linux 2.6 Ubuntu 12.04 LTS x86
Linux 3.x Ubuntu 14.04 LTS x86
Linux 3.x Ubuntu 14.04 LTS x64
What would be the most stable solution for raising a 32bit dedicated server over wine a not too experienced person like me?
User avatar
L. Rahyen
Moderator
Moderator
Posts: 338
Joined: Fri Feb 22, 2008 9:13 pm

Re: Centos 7 dedicated server - bad exe format

Post by L. Rahyen »

Can someone please confirm that I wouldn't run into same problem if I used Linux 3.x Ubuntu 14.04 LTS x64 distro?
32-bit Wine should work on it out-of-the-box, so it should be good choice.
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Re: Centos 7 dedicated server - bad exe format

Post by dimesio »

Ubuntu's 64 bit packages do provide a working WoW64 setup, and using a 32 bit distro will avoid the problem as well. But there's another consideration: how often do you plan to upgrade Wine on your system, and are you going to rely on distro packages? If you plan to upgrade regularly using distro packages, Ubuntu has become a very poor choice, as lately they've only been building Wine packages sporadically.
kr4ft3r
Newbie
Newbie
Posts: 4
Joined: Thu Jul 02, 2015 8:24 am

Re: Centos 7 dedicated server - bad exe format

Post by kr4ft3r »

Thanks guys. I guess its back to CentOS 6.3 for this noob. :D
Locked