Friday, 7 May 2010

How to Install MinGW

Step 1 - Create directory c:\mingw

Step 2 - Download the following files into c:\mingw
  1. binutils-2.20.1-2-mingw32-bin.tar.gz
  2. gcc-c++-4.5.0-1-mingw32-bin.tar.lzma
  3. gcc-core-4.5.0-1-mingw32-bin.tar.lzma
  4. gdb-7.1-2-mingw32-bin.tar.gz
  5. libexpat-2.0.1-1-mingw32-dll-1.tar.gz
  6. libgcc-4.5.0-1-mingw32-dll-1.tar.lzma
  7. libgmp-5.0.1-1-mingw32-dll-10.tar.lzma
  8. libmpc-0.8.1-1-mingw32-dll-2.tar.lzma
  9. libmpfr-2.4.1-1-mingw32-dll-1.tar.lzma
  10. libstdc++-4.5.0-1-mingw32-dll-6.tar.lzma
  11. make-3.81-20090914-mingw32-bin.tar.gz
  12. mingwrt-3.18-mingw32-dev.tar.gz
  13. mingwrt-3.18-mingw32-dll.tar.gz
  14. w32api-3.14-mingw32-dev.tar.gz

  15. grep-2.5.4-bin.zip
  16. grep-2.5.4-dep.zip
Step 3 - Extract the files you downloaded with 7-Zip 4.65 into c:\mingw

Step 4 - Check that you have the following directories
  1. c:\mingw\bin
  2. c:\mingw\doc
  3. c:\mingw\include
  4. c:\mingw\lib
  5. c:\mingw\libexec
  6. c:\mingw\mingw
  7. c:\mingw\share
Step 5 - Start a console
  • start > run > cmd > enter
Step 6 - Set the system path
  • path=c:\mingw\;%path%
Step 7 - Test
  • Go to directory c:\
  • Enter "mingw32-make --version"
  • You should see, "GNU Make 3.81"

No comments:

Post a Comment