def check_gcc():
    """Check that gcc is installed"""
    from sh import which
    shOut = which('gcc')
    if not shOut is None:
        from sh import gcc
        version = str(gcc('--version'))
        return version, True
    else:
        print(
            'ERROR: you must install gcc version 5.1 or above before continuing.'
            )
        return None, False
