?
Solved

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

Posted on 2006-04-01
1
Medium Priority
?
376 Views
Last Modified: 2010-04-20
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
0
Comment
Question by:Gir77
1 Comment
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 225 total points
ID: 16351815
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

Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month16 days, 6 hours left to enroll

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question