- install mac ports
- sudo port install avr-binutils
$ sudo port install avr-binutils WARNING: Improper use of the sudo command could lead to data loss or the deletion of important system files. Please double-check your typing when using sudo. Type "man sudo" for more information. To proceed, enter your password, or type Ctrl-C to abort. Password: ---> Fetching avr-binutils ---> Attempting to fetch binutils-2.16.1.tar.bz2 from http://mirrors.kernel.org/gnu/binutils ---> Verifying checksum(s) for avr-binutils ---> Extracting avr-binutils ---> Applying patches to avr-binutils ---> Configuring avr-binutils ---> Building avr-binutils ---> Staging avr-binutils into destroot Warning: avr-binutils requests to install files outside the common directory structure! ---> Installing avr-binutils @2.16.1_0 ---> Activating avr-binutils @2.16.1_0 ---> Cleaning avr-binutils
- sudo port configure avr-libc
$ sudo port configure avr-libc ---> Fetching expat ---> Attempting to fetch expat-2.0.1.tar.gz from http://voxel.dl.sourceforge.net/expat ---> Verifying checksum(s) for expat ---> Extracting expat ---> Configuring expat ---> Building expat ---> Staging expat into destroot ---> Installing expat @2.0.1_0 ---> Activating expat @2.0.1_0 ---> Cleaning expat ---> Fetching gperf ---> Attempting to fetch gperf-3.0.4.tar.gz from http://mirrors.kernel.org/gnu/gperf ---> Verifying checksum(s) for gperf ---> Extracting gperf ---> Configuring gperf ---> Building gperf ---> Staging gperf into destroot ---> Installing gperf @3.0.4_0 ---> Activating gperf @3.0.4_0 ---> Cleaning gperf ---> Fetching libiconv ---> Attempting to fetch libiconv-1.12.tar.gz from http://mirrors.kernel.org/gnu/libiconv ---> Verifying checksum(s) for libiconv ---> Extracting libiconv ---> Applying patches to libiconv ---> Configuring libiconv ---> Building libiconv ---> Staging libiconv into destroot ---> Installing libiconv @1.12_2 ---> Activating libiconv @1.12_2 ---> Cleaning libiconv ---> Fetching ncursesw ---> Attempting to fetch ncurses-5.7.tar.gz from http://mirrors.kernel.org/gnu/ncurses ---> Verifying checksum(s) for ncursesw ---> Extracting ncursesw ---> Configuring ncursesw ---> Building ncursesw ---> Staging ncursesw into destroot ---> Installing ncursesw @5.7_0 ---> Activating ncursesw @5.7_0 ---> Cleaning ncursesw ---> Fetching ncurses ---> Verifying checksum(s) for ncurses ---> Extracting ncurses ---> Configuring ncurses ---> Building ncurses ---> Staging ncurses into destroot ---> Installing ncurses @5.7_0 ---> Activating ncurses @5.7_0 ---> Cleaning ncurses ---> Fetching gettext ---> Attempting to fetch gettext-0.17.tar.gz from http://distfiles.macports.org/gettext ---> Verifying checksum(s) for gettext ---> Extracting gettext ---> Applying patches to gettext ---> Configuring gettext ---> Building gettext ---> Staging gettext into destroot ---> Installing gettext @0.17_4 ---> Activating gettext @0.17_4 ---> Cleaning gettext ---> Fetching avr-gcc ---> Attempting to fetch gcc-4.0.2.tar.bz2 from http://distfiles.macports.org/gcc ---> Verifying checksum(s) for avr-gcc ---> Extracting avr-gcc ---> Applying patches to avr-gcc ---> Configuring avr-gcc ---> Building avr-gcc ---> Staging avr-gcc into destroot Warning: avr-gcc requests to install files outside the common directory structure! ---> Installing avr-gcc @4.0.2_0+darwin_9 ---> Activating avr-gcc @4.0.2_0+darwin_9 ---> Cleaning avr-gcc ---> Fetching zlib ---> Attempting to fetch zlib-1.2.3.tar.bz2 from http://distfiles.macports.org/zlib ---> Verifying checksum(s) for zlib ---> Extracting zlib ---> Applying patches to zlib ---> Configuring zlib ---> Building zlib ---> Staging zlib into destroot ---> Installing zlib @1.2.3_2 ---> Activating zlib @1.2.3_2 ---> Cleaning zlib ---> Fetching binutils ---> Attempting to fetch binutils-2.19.tar.bz2 from http://distfiles.macports.org/binutils ---> Verifying checksum(s) for binutils ---> Extracting binutils ---> Configuring binutils ---> Building binutils ---> Staging binutils into destroot Warning: binutils requests to install files outside the common directory structure! ---> Installing binutils @2.19_0 ---> Activating binutils @2.19_0 ---> Cleaning binutils ---> Fetching avr-libc ---> Attempting to fetch avr-libc-1.6.1.tar.bz2 from http://distfiles.macports.org/avr-libc ---> Verifying checksum(s) for avr-libc ---> Extracting avr-libc ---> Configuring avr-libc
- sudo port build avr-libc
- sudo port install avr-libc
$ sudo port install avr-libc ---> Staging avr-libc into destroot Warning: violation by /opt/local/avr Warning: avr-libc violates the layout of the ports-filesystems! Warning: Please fix or indicate this misbehavior (if it is intended), it will be an error in future releases! ---> Installing avr-libc @1.6.1_0 ---> Activating avr-libc @1.6.1_0 ---> Cleaning avr-libc
- sudo port install avrdude
$ sudo port install avrdude ---> Fetching libusb ---> Attempting to fetch libusb-0.1.12.tar.gz from http://voxel.dl.sourceforge.net/libusb ---> Verifying checksum(s) for libusb ---> Extracting libusb ---> Applying patches to libusb ---> Configuring libusb ---> Building libusb ---> Staging libusb into destroot ---> Installing libusb @0.1.12_1 ---> Activating libusb @0.1.12_1 ---> Cleaning libusb ---> Fetching readline ---> Attempting to fetch readline-6.0.tar.gz from http://mirrors.kernel.org/gnu/readline ---> Verifying checksum(s) for readline ---> Extracting readline ---> Applying patches to readline ---> Configuring readline ---> Building readline ---> Staging readline into destroot ---> Installing readline @6.0.000_1 ---> Activating readline @6.0.000_1 ---> Cleaning readline ---> Fetching avrdude ---> Attempting to fetch avrdude-5.5.tar.gz from http://distfiles.macports.org/avrdude ---> Verifying checksum(s) for avrdude ---> Extracting avrdude ---> Applying patches to avrdude ---> Configuring avrdude ---> Building avrdude ---> Staging avrdude into destroot ---> Installing avrdude @5.5_0 ---> Activating avrdude @5.5_0 ---> Cleaning avrdude
See here. Adafruit also has a very good info on avr on mac.
for more details.