Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wish to install the latest version of MinGW-w64 and was told the best way is to install it via Ubuntu's apt-get command.

How do I search for and install the latest version of MinGW-w64? I need the 64-bit version. What commands must I issue?

As always, thanks in advance for your help.

share|improve this question
up vote 4 down vote accepted
  1. If you want the Ubuntu one (stable) you can do...

    sudo apt-get install mingw-w64
    • BTW: It states 'Development environment targetting 32- and 64-bit Windows' so there is probably only 1 install for both systems on Ubuntu.
    • I used to search for mingw
  2. If you want the latest(=bleeding edge) you need to install from source.

    From the Website.

    • Source files: if you're reading this, you probably don't want these.
    • Automated builds: these are daily or weekly builds of different versions of the toolchain components, packaged together in one bundle. Here there are also Linux and Cygwin cross-complers.
      • Automated builds with the 1.0 version tag are GCC 4.5.
      • Automated builds without the 1.0 version in their name are GCC trunk.
      • Personal builds: these are builds made by users, and approved by the developers and maintained by active users. They usually provide more features than the autobuilds.

See the answer by woto in How to add a directory to my path? on how to add directories to PATH.

  • Download the one you want from the Automated Builds. To install a downloaded toolchain package, just untar it to a directory of your choice and add the toolchain executables to PATH.
share|improve this answer
@ Rinzwind: Thanks for your help. I really appreciate it. I am using Ubuntu 12.10. How do I add the toolchain executables to PATH? I am new to Ubuntu/Debian. – n00b Feb 20 '13 at 1:30
@n00b edited it in :) – Rinzwind Feb 20 '13 at 7:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.