Skip to content

Instantly share code, notes, and snippets.

@ahsankhatri
Created February 2, 2017 10:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahsankhatri/260c58929962a01bf9e26ef660c832d0 to your computer and use it in GitHub Desktop.
Save ahsankhatri/260c58929962a01bf9e26ef660c832d0 to your computer and use it in GitHub Desktop.
Install Ruby, Gem & Mailcatcher in Cygwin (Windows)

Install Ruby, Gem & Mailcatcher in Cygwin (Windows)

  1. Install Cygwin (http://www.cygwin.com/)
  • Select the folowing packages: curl, git, nano, openssh, openssl, unzip, util-linux, vim, wget
  1. Install Ruby (https://rubyinstaller.org/downloads/)
  • Download and install ruby.
  • Make sure you've ammend PATH in environment variable
  • Verify in Cygwin by closing and starting cygwin then type: echo $PATH
  • Make sure you got /cygdrive/c/Ruby22/bin (according to your path)
  1. Edit ~/.bash_profile or ~/.profile
  • Add alias gem=gem.bat
  1. Install Mailcatcher
  • gem install mailcatcher

Now whenever you install any package from gems you need to add alias in ~/.bash_profile in order to run in cygwin OR you can directly batch file with gem.bat -v

e.g. add alias mailcatcher=mailcatcher.bat in ~/.bash_profile

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment