This is the mail archive of the
mailing list for the Cygwin project.
Re: problem with g77
- From: Larry Hall <cygwin-lh at cygwin dot com>
- To: "Hannu E K Nevalainen (garbage mail)" <garbage_collector at telia dot com>
- Cc: cygwin at cygwin dot com
- Date: Wed, 18 Jun 2003 18:03:47 -0400
- Subject: Re: problem with g77
- References: <NGBBLLIAMFLGJEOAJCCEAEPLDAAA.firstname.lastname@example.org>
- Reply-to: cygwin at cygwin dot com
Hannu E K Nevalainen (garbage mail) wrote:
From: email@example.com [mailto:firstname.lastname@example.org]On Behalf
Of Dr Jeff Forshaw
I have a peculiar problem using g77. I can compile and produce sensible
object files, and I can create executables. However, when I come
to run the
executable I get the error
"bash: MZ?: command not found"
$ od -t x1z </usr/bin/ls.exe | head -1
0000000 4d 5a 90 00 03 00 00 00 04 00 00 00 ff ff 00 00 >MZ..............<
$ . /usr/bin/ls.exe
bash: MZ?: command not found
Seems to me that bash is trying to _source_ your executable. ( $ help
What filesystem are you using?
If not FAT or FAT32 then try "chmod u+x" on the executable.
(IIRC there is some problems regarding chmod on FAT fs'es.)
Actually, chmod works fine on FAT (not FAT32) with 'ntea' set on
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
838 Washington Street (508) 893-9889 - FAX
Holliston, MA 01746
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html