Skip to content
AVR toolchain for homebrew
Branch: master
Clone or download
Pull request Compare This branch is 183 commits behind osx-cross:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This repository contains the GNU AVR Toolchain as formulae for Homebrew.

AVR is a popular family of microcontrollers, used for example in the Arduino project.

Current Versions

  • gcc 4.9.3 and gcc 4.8.5
  • binutils 2.24.0
  • avr-libc 1.8.1
  • gdb 7.8.2

Installing homebrew-avr formulae

First, just brew tap osx-cross/avr and then brew install <formula>.

To install the entire AVR toolchain, do:

# to tap the repository
$ brew tap osx-cross/avr

# to install the last version of avr-gcc, i.e. 4.9.2
$ brew install avr-libc

# or to install previous versions of avr-gcc
$ brew install avr-libcXX

# where XX is the version you want to install, eg. 4.8.3
$ brew install avr-libc48

This will pull in the prerequisites avr-binutils and avr-gcc.

Switching between versions

It is possible to have multiple versions of the AVR Toolchain installed side by side. But they cannot be used at the same time.

To switch between version, for example from 4.9 to 4.8 you need to:

# First unlink the current 4.9 version
$ brew unlink avr-gcc avr-libc

# Then link the 4.8 version
$ brew link avr-gcc48 avr-libc48

And to switch from an older version to the latest version:

# Unlink the current version, where XX is the version number
$ brew unlink avr-gccXX avr-libcXX

# Then link the latest version
$ brew link avr-gcc avr-libc


brew help, man brew, or the Homebrew wiki.


This repository is based on the works of:

You can’t perform that action at this time.