avr-g++: no such file or directory

Thank you for this! I've been trying to find this for weeks whilst using codebender instead. This is the only method that worked for me on mac with g++ missing file error.