Web lists-archives.com

[Mingw-users] Unable to run x86-mingw32-build.sh on ubuntu

I am trying to install mingw32 under ubuntu 14.04 64-bit, to compile w32 programs with eclipse that run under wine, which runs existing w32 programs fine.

I have downloaded x86-mingw32-build-1.0-sh.tar.bz2 (dated 2009-03-16 12:41Z) from https://sourceforge.net/projects/mingw/files/Installer/
The file x86-mingw32-build.sh is 7478 bytes and dated 2009-03-16 12:28:22

When I run x86-mingw32-build.sh I get an error:
$ sh x86-mingw32-build.sh i586-pc-mingw32
x86-mingw32-build.sh: 130: /[XXX]/x86-mingw32-build-1.0/x86-mingw32-build.sh.functions: Syntax error: Bad function name

Lines 126-32 of x86-mingw32-build.sh.functions seem to be ... :
# Some of the following functions can use the `local' built in command,
# if it is available; make sure we have a fall back, if it isn't ...
test -z "`exec 2>/dev/null; try(){ local x; }; try || echo no`" || \
# ... by making it a function equivalent to the `null' command.
{ :; }

Any assistance in getting mingw32 installed and running under eclipse would be appreciated

Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
MinGW-users mailing list

This list observes the Etiquette found at
We ask that you be polite and do the same.  Disregard for the list etiquette may cause your account to be moderated.

You may change your MinGW Account Options or unsubscribe at:
Also: mailto:mingw-users-request@xxxxxxxxxxxxxxxxxxxxx?subject=unsubscribe