Currently Being ModeratedDec 28, 2012 9:01 PM (in response to johnfromgilroy)
Have you done all of this?
Currently Being ModeratedDec 28, 2012 11:05 PM (in response to softwater)
None of the responses/experiences seems to apply to me. Let me ask the question this way, because it's partly for my education and also I'd like to program in C. Let's say I have a Unix box and I want to program in C. What files need to be where in what directories? And why wouldn't that work on a Mac? My impression is that the Mac OS X 10.8 contains all I need, but it doesn't work. At least I don't think it does. I may be out in left field here. But surely, being a Unix box, I can get this machine to compile C code in something like the usual fashion. I don't need editors or development environments beyond the basic stuff - unless your telling me maybe I do! Anyway, just wondering what files need to go where in order to compile C programs. Thanks for you forbearance. I appreciate it.
Currently Being ModeratedDec 29, 2012 1:16 AM (in response to johnfromgilroy)
All you need is a gcc compiler and a text editing program (vi or emacs will do if you're used to unix command line). Unfortunately, gcc is not included by default anymore. One way to get it is from Xcode, but if you don't have Xcode, you'll need to find a repository somewhere on the net where you can download a free compiler.
Once you've got the compiler, all you need is somewhere to store your compiled programs and to put that place in your $PATH.
Currently Being ModeratedDec 29, 2012 1:13 AM (in response to johnfromgilroy)
At first, it could not find gcc. Then I added /Developer/usr/bin to the path and it seemed to find gcc.
Go to Terminal and type
If it returns 'command not found', you don't have the gcc compiler installed. If it returns a version number, then you should be good to go.