olzbrown.blogg.se

How to install c compiler in mac
How to install c compiler in mac












The important thing is that at the end of the line is /usr/local/bin Now type in echo $PATH (for bash) or echo $path (for t/csh) you should get something like the following:

how to install c compiler in mac

If the output is /bin/csh or /bin/tcsh then type the following command:Įcho 'set path = ($path /usr/local/bin)' > ~/.cshrcĬlose any Terminal windows and open up a new one.

how to install c compiler in mac

If the output is /bin/bash then type the following command:Įcho 'PATH=$PATH:/usr/local/bin' > ~/.bash_profile In the new Terminal window, type in echo $SHELL and press return In this prep-step you'll change the profile of your Terminal to add /usr/local/bin to the path.įind the Terminal program, you'll be using this to do most of this stuff. That means that when you type avrdude into the terminal it cant figure out where to look. Unfortunately that directory is not in the default path. The following two methods both place all of the files in the /usr/local/bin directory in the hard driver.














How to install c compiler in mac