Find the Terminal program, you'll be using this to do most of this stuff. Its in the Applications/Utilities folder
In the new Terminal window, type in echo $SHELL and press return
If the output is /bin/bash then type the following command:
echo 'PATH=$PATH:/usr/local/bin' >> ~/.bash_profile
all on one line. Press return.
If the output is /bin/csh or /bin/tcsh then type the following command:
echo 'set path = ($path /usr/local/bin)' >> ~/.cshrc
all on one line. Press return.
Close any Terminal windows and open up a new one. This makes sure the .bash_profile or .cshrc is reloaded. Now type in echo $PATH (for bash) or echo $path (for t/csh) you should get something like the following:
Can't get it working? Dont worry, help is available in the forums!
Once its done, compile binutils. type: make <return>
this will start an even longer compilation process
Decompress the downloaded file and put the decompressed folder in your home directory. Open up a new Terminal window in your home directory, type cd gcc-4.2.0 and then ls to verify its all in there.
Next, c reate another directory to install gcc into.
type: cd .. <return> to go back into the home directory, then
type: mkdir avrgcc-4.2<return> (substituting your gcc version for the 4.2)
Navigate to the folder you created.
type: cd avrgcc-4.2 <return> (or whatever you named your folder)
Configure gcc for AVR.
Type: ../gcc-4.2.0/configure --target=avr --enable-languages=c --disable-libssp
(substituting the name of the folder you decompressed for the gcc-4.2.0)
**thanks to Seth Raphael for the --disable-libssp tip
Once the configuration is done, compile gcc.
type: make CC='cc --no-cpp-precomp' <return>
This will take a long time so go have a sandwich
When its done and you've washed your plate and silverware, install gcc. type: sudo make install<return>
and enter your password when prompted
Step 4. Download and install avr-libc (an essential C library for AVR chips)
Download the current release of avr-libc from : http://savannah.nongnu.org/projects/avr-libc/
Decompress the downloaded file and put the decompressed folder in your home directory
In a new Terminal window, navigagte to the avr-libc directory. from your home directory
type: cd avr-libc-1.4.6 <return> (or whatever you downloaded)
Configure avr-libc. type: ./configure --host=avr <return>
Compile avr-libc. type: make
Install avr-libc. type: sudo make install
Step 5. Download and install avrdude (the software that loads programs from your machine onto the chips)
Download the current release of avrdude from : http://download.savannah.gnu.org/releases/avrdude/
Decompress the downloaded file and put the decompressed folder in your home directory
In a Terminal window, navigate to the avrdude directory. From your home directory type: cd avrdude-5.2 (or whatever you downloaded)
Configure avrdude. type: ./configure
Compile avrdude. type: make
Install avrdude. type: sudo make install
Yay all the software is installed!
Can't get it working? Dont worry, help is available in the forums!