Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

non-IDE C development environment

How do I set up a non-IDE-based C development environment on Linux?

like image 452
Frank O'Grady Avatar asked Jul 17 '10 03:07

Frank O'Grady


4 Answers

gcc + make + vi and you will live happily ever after!

like image 194
Vitor Py Avatar answered Sep 28 '22 14:09

Vitor Py


A pretty good development environment is most likely already there--no setup necessary. This is because most Linux installations are GNU/Linux. GNU provides all the pieces you need for C software development.

Use the 'which' command to make sure these programs are in your execution path

which gcc
which make

Gcc is your compiler. Make lets you define the compiling and linking steps. (It can call gcc for you.)

You are likely to have several editors installed such as vi, nano, and GNU emacs. To see if you have emacs (for instance), type

which emacs

If the which command returns a valid path (i.e. it doesn't say which: no emacs in ...) then that means you can run the program just by typing its name:

emacs

for example.

like image 44
GoalBased Avatar answered Sep 28 '22 12:09

GoalBased


Okay my environment:

Geany or gedit, make, GCC. If I have to code on the command line I'd probably go with vi or nano over emacs, I just can't cope with emacs anymore.

like image 43
Matt Joiner Avatar answered Sep 28 '22 13:09

Matt Joiner


Okay, someone's gotta say it: Emacs, gcc, and make.

If - as a commenter suggested - you're looking for instructions on setting this up, there's probably no set up needed, as most Linux distributions I've used come with these programs already installed.

like image 32
GreenMatt Avatar answered Sep 28 '22 13:09

GreenMatt