This package is in universe repository of Ubuntu. So make sure you have enabled universe in /etc/apt/sources.list
To install it use the command:
sudo apt-get install mingw32
It will install packages mingw32
mingw32-binutils
mingw32-runtime
automatically
and
sudo apt-cache search mingw32
mingw32 - Minimalist GNU win32 (cross) compiler
mingw32-binutils - Minimalist GNU win32 (cross) binutils
mingw32-runtime - Minimalist GNU win32 (cross) runtime
no need to select one. These packages are dependency of mingw32
Note : Currently these packages are available in trusty
, utopic
and earlier version of Ubuntu. If you are using the latest Ubuntu version then check Ubuntu package search if package available or not. If not then either download package and install manually or download source and compile it.
EDIT:
You can also try this:
For 32bit system:
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32/mingw32_4.2.1.dfsg-2ubuntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-binutils/mingw32-binutils_2.20-0.2ubuntu1_i386.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-runtime/mingw32-runtime_3.15.2-0ubuntu1_all.deb
For 64bit system
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32/mingw32_4.2.1.dfsg-2ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-binutils/mingw32-binutils_2.20-0.2ubuntu1_amd64.deb
wget http://archive.ubuntu.com/ubuntu/pool/universe/m/mingw32-runtime/mingw32-runtime_3.15.2-0ubuntu1_all.deb
Install these packages using the command:
sudo dpkg -i *.deb
If it shows dependencies then use command :
sudo apt-get install -f
and again install
sudo dpkg -i *.deb