How to install Linux under the C development environment


This article will guide you with detailed steps to deploy C-language development environment under Linux,Due to numerous Linux distributions,Specific circumstances vary,As used herein, the classic example of RHEL5。

Installation under Linux C development kit

Linux C development kit can be installed under the yum service,You can also use iso CD installation source files via the command rpm,Here are the source files using iso CD installation kit。

1、Mount CD

  1. In / media New Folder cdrom :mkdir /media/cdrom
  2. Mount the RHEL5 installation disk dvd: mount /dev/cdrom /media/cdrom

2、Installation dependencies

Iso CD into the source files Server directory,As shown below:


View Dependencies


According to dependency,The total installed package can be summarized in the following command:

So the whole installation procedure should be:


After installation,Constitute the basic C development environment,In this C development environment,You can compile an application written in C, the majority of。For a C program for,After installation may generally be divided into three components:

  1. executable file
  2. Include files
  3. Library file

The final executable file is the command to run,Some definitions include file is the file C program include the,The library is the C program custom libraries。For example, for useRPMInstalledMySQL:Executable file in the / usr / bin,Include files in / usr / include / mysql under,Library files in / usr / lib / mysql。Only the system can find the include files and library files corresponding to the program,Executable file to run properly。

Original article written by Gerber drop-off:R0uter's Blog » How to install Linux under the C development environment

Reproduced Please keep the source and description link:

About the Author


Leave a Reply

Your email address will not be published. Required fields are marked *