I have been using Textmate for writing my C source but want to do everything via the terminal.
How does one program via the terminal? Is anything else needed, installed?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In order to write source code on the Terminal, you will of course need an editor that works on the Terminal. In OS X, you have a lot of options to choose from. If you want simple and easy to use editors, you may want to try
nanoandpicothat are available on OS X. If you start to want a little or more functionality out of the text editor, then you may want to try editors likevimandemacs, which are also available under OS X.In order to compile your
Csource, you will require aCcompiler. While OS X does not, by default, come pre-installed with aCcompiler, you can quickly install a slew of development tools that are available in the OS X installation discs that you may have got when you bought your Mac. Those tools will provide you withgcc— which is the GNU C compiler that you can use on the Terminal to compile yourCsources –,gdb— which is the GNU Debugger that you can further use to debug your compiledCsource –,make— which is GNU make, a program that, when you start to have to manage a number ofCsource files, can help you by creating make files and automating build operations — and a number of other tools that you may want to explore as you spend more time with the system and become familiar with it.