Firstly head over to MacPorts and download the .dmg that corresponds to your system.
After installing MacPorts fire up a terminal and if you haven’t installed emacs earlier doing a
$ sudo port install gcc46
this will take about 11 hours or some ridiculous amount like that…
When gcc46 is installed and compiled head over to /usr/bin/ and remove the gcc, c++, g++ and cc links, i cannot stress enough how important it is for you to take backups of these files…
$ sudo rm gcc c++ g++ cc $ sudo ln -s /opt/local/bin/gcc-mp-4.6 cc $ sudo ln -s /opt/local/bin/gcc-mp-4.6 gcc $ sudo ln -s /opt/local/bin/g++-mp-4.6 g++ $ sudo ln -s /opt/local/bin/c++-mp-4.6 c++
and a final
$ gcc --version
will tell us that everything is in fact going good with a
gcc (GCC) 4.6.2 Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
assuming that you have followed the steps correctly
I was planning to learn ruby on rails for a long time and given that I have some experience with the MVC arcitechture I thought I wouldn’t have any problems learning it and hell maybe do a couple of webcasts about it… but then I found out about this site called rails for zombies, which is a fun and interactive way of teaching rails to people.