I needed to have mailcatcher to be installed in my homestead box since its good and fast practice to run all mail on your local dev truh your mailcatcher. So lets get started:
First open up your homestead box by typing in your terminal
homestead ssh if it was not on already first do a
Installing mailcatcher is a breeze just type in
sudo gem install mailcatcher and the installation will start and finish just in a few minutes. Be aware that the installation command doesnt give you feedback that confused me in the beginning alot but just hang on and wait for it to complete!
I am getting a Error!
So when installing i got the following error:
ERROR: Error installing mailcatcher: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- mkmf (LoadError) from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require' from extconf.rb:2:in `<main>'
After some googling it seems something is up with the installed version of ruby so we need the dev version. enter in your terminal
sudo apt-get install ruby-dev than it should ask you
After this operation, 252 kB of additional disk space will be used. Do you want to continue? [Y/n] y
Y to continue. Now your running Ruby-dev enter the mailcatcher install command again and your good to go!
To start mailcatcher just fire it up with the command
Awesome!! all finished here now when you go to this url https://192.168.10.10:1080 you should see mailcatcher all working and all.