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

Posted on 2006-04-01
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,
Question by:Gir77
    1 Comment
    LVL 23

    Accepted Solution

    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.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
    In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    759 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now