How do I compile or "make" a program in Linux?

I am new to linux and don't know much about it. I installed a distro to my computer. I don't know how compile or "make" (I guess that's what they call it) a program in linux.


                                                       Thanks for your help,
                                                                                        Gir77
Gir77Asked:
Who is Participating?
 
brettmjohnsonCommented:
First, make sure your distro installed the developer tools (compilers, linkers, make program, etc).
Run the command 'which gcc' to see if the compiler is installed.  Make sure that the directory
/user/include exists and contains dozens of files and subdirectories.  [ I have seen recent posts
where the compiler was installed, but the header files were missing.]  If the developer tools  
are not installed correctly, reinstall them from distribution media.

Once they are installed properly, you can follow these tutorials to learn how to use the compiler
and make.

http://users.actcom.co.il/~choo/lupg/tutorials/c-on-unix/c-on-unix.html
http://www.stat.uchicago.edu/~gosset/Compdocs/gcc.html
http://users.actcom.co.il/~choo/lupg/tutorials/writing-makefiles/writing-makefiles.html
http://www.cs.washington.edu/orgs/acm/tutorials/dev-in-unix/makefiles.html
http://www.opussoftware.com/tutorial/TutMakefile.htm



0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.