[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  Compiling the server
. . -> [Subject]  smaug.exe wont run after successful compile

smaug.exe wont run after successful compile

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Nargsbrood   (54 posts)  [Biography] bio
Date Thu 18 Oct 2007 08:25 AM (UTC)
Message
i get this message:
this is stock 1.7 version of FUSS

$ ../src/smaug
../src/smaug: ../src/smaug: cannot execute binary file

$ file ../src/smaug
../src/smaug: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), for GNU/Linux 2.6.9, not stripped




my stock 1.6 version of FUSS runs fine after compile.

$ file smaug.exe
smaug.exe: PE executable for MS Windows (console) Intel 80386 32-bit






why is the file information so dramatically different? Are those versions and 64bit/32bit information decided by makefile? How would I go about fixing this?
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] bio
Date Reply #1 on Thu 18 Oct 2007 11:53 AM (UTC)
Message
Are the permissions correct?

What is your system info (computer) that is trying to run it?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio
Date Reply #2 on Fri 19 Oct 2007 09:42 AM (UTC)
Message
For some reason your compiler is generating 64-bit code; it probably thinks (correctly one hopes??) that you are on a 64-bit system. But you probably don't want to do that in general on a Windows machine, because you probably don't have the proper 64-bit system libraries and all that set up.

This is gcc under Cygwin, right? What version of gcc, and is your Cygwin installation up to date?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nargsbrood   (54 posts)  [Biography] bio
Date Reply #3 on Sat 20 Oct 2007 02:44 AM (UTC)
Message
yes - it is cygwin under windows environment. i dont know why it is compiling it as 64 bit code. it works though even though i have a 32 bit processor.

I guess I figured out the problem because zeno was wondering about the permissions of the files. While I was comparing the permissions, I realized that in my directory where smaug.exe is there is also another "binary" file called just plain old smaug with no extension. when i was trying to start up smaug.exe i was just using ../src/smaug which was then making a call to the one with no extension because it is an exact match.

i was then able to run smaug after typing ../src/smaug.exe

I simply changed the smuag "whatever" binary file to smaug.backup in case i needed it(so far I havent:). Now I can just ../src/smaug without any problems.

1.6 or 1.8 do not have the extra smaug "binary" file in the stock release but 1.7 does. go figure. It's 3mb big. Are they padding the download size? jk:)
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


11,688 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]