Installing MinGW/MSYS on Windows with OpenSSL support

Posted: 26th November 2013 by Babar Shafiq in Programming
Tags: , , , ,

 

Installing MinGW/MSYS
http://www.mingw.org/wiki/HOWTO_Install_the_MinGW_GCC_Compiler_Suite
http://www.mingw.org/wiki/MSYS

Install MinGW (before MSYS)

Download the MinGW Installer from http://sourceforge.net/projects/mingw/files/Installer/mingw-get-setup.exe/download

  1. Select Save File when prompted.
  2. Open the downloaded exe.
  3. Click Yes when Windows asks if you want to allow it.
  4. Click Next > on the Welcome screen.
  5. Select Download and Install and click Next >
  6. Read the License Agreement and click I agree
  7. Select Current to install the current MinGW package and click Next >
  8. Check the MinGW base tools and g++ compiler click Next
  9. Destination Folder should be C:\MinGW
  10. Click Next >
  11. Leave the default folder and click Install
  12. When Installation is complete, click Next >
  13. Click Finish

Install MSYS:

  1. Download MSYS
  2. Run the downloaded exe.
  3. Click Yes when Windows asks if you want to allow it.
  4. Click Yes you want to install in the Setup pop-up.
  5. Click Next in the Welcome Window.
  6. Read the License Agreement and click Yes
  7. Read the Information and click Next >
  8. The Default Destination of C:\msys\1.0 is fine, so click Next >
  9. The default folder of MinGW is fine, so click Next >
  10. Click Install
  11. A cmd shell will pop-up asking if you want to continue with the post install, enter y enter
  12. Answer y you do have MinGW Installed.
  13. Enter c:/mingw as the path where MinGW is installed.
  14. It should confirm that you have make.exe installed, press any key to continue.
  15. Click Finish you are done the installation. (It is up to you if you want to open the documents.)

OpenSSL

OpenSSL is a library for Secure Sockets Layer (SSL), Transport Layer Security (TLS) protocols, and cryptography. Some tools require openSSL, if so, here are some instructions:

I downloaded an openssl installer from: http://www.slproweb.com/products/Win32OpenSSL.html

I installed into /mingw/openssl/. I then linked the includes:

cd /mingw/include
ln -s ../openssl/include/openssl openssl

That's it.
  1. harvey says:

    thanks!