How can I run a Unix Shell script Under Windows?

As the title, I have the source code of GCC, and I am going to build GCC using it. However, as everyone knows, script configure is a Unix Shell script, so I cannot run it under Windows.

Therefore, how can I run a Unix Shell script Under Windows to build GCC?
You could install cygwin to give a Linux-like environment on Windows:
Cygwin or MSYS2 (Mingw-w64) give you a fully-fledged "Unix-like" environment on Windows:

Note: Programs compiled with Cygwin will always depend on the Cygwin-DLL (i.e. Cygwin compatibility layer) at runtime! Meanwhile, MSYS2 (Mingw-w64) produces "native" Windows executables.

If you just need a Unix shell (and maybe some other basic Unix utilities), then give BusyBox a try:

(BusyBox is a single binary that contains many common Unix tools)
Last edited on
Open Command Prompt and navigate to the folder where the script file is available. Type Bash and hit the enter key. It will execute the script, and depending on the file, you should see an output.
Last edited on
How long before Eathan turns his vague post into one to show a spam link? He's done it before.
Are you building that package to run as a native Windows app, or via cygwin (or similar)?

It's hard to give helpful answer from what you've specified.
Registered users can post here. Sign in or register to post.