How to install Linux under the C development environment

Foreword

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:

686009B4-1232-421C-9361-23FEB5DDAC86

View Dependencies

DEC34A9E-2C9B-4CB6-9A9D-AEBEE7232B72A580A798-3FC9-4669-A3D1-B606AC5085C4021C0310-33D7-4A76-BCBB-5B0B08BE6D1D

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

So the whole installation procedure should be:

End

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 LogStudio:R0uter's Blog » How to install Linux under the C development environment

Reproduced Please keep the source and description link:https://www.logcg.com/archives/452.html

About the Author

lucifer

Leave a Reply

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