Gcc Compiler For Mac
Posted : admin On 07.02.2020
I have installed Xcode and the command line tools from the Mac Developers website, which I have read a few times is a prerequisite. I also installed the MacPorts program. In terminal: sudo port install gcc48 sudo port select -set gcc mp-gcc48 All the above went smoothly until I type: hash gcc When I press enter, I get the following error message: -bash: hash: gcc: not found I am at a loss and do not know how to proceed to successfully install gcc on my Mac (which is running Mac OS X 10.9.1).


Much obliged to any suggestions and or alternatives to installing the gcc. I don't think your port select command did what you expected.
Gcc On Mac
The manual states that the select command selects between multiple versions of a versioned port, which I believe is not your case here: pejvan$ port help select Usage: select -list -set -show -summary Select between multiple versions of a versioned port This allows you to choose which version, among several installed versions of a port, is to be considered primary. What this means is which version becomes the one most would consider the default, e.g. The one run without specifying any version.