2009-11-15 22:39:01| 分类: linux&shell | 标签: |举报 |字号大中小 订阅
by Vivek Gite · 19 comments
Q. I have Red hat enterprise Linux 5 installed on on
A.In order to compile and use c/c++ under Linux you need following packages
=> autoconf : GNU's Autoconf is a tool for configuring source co
=> make/automake : A GNU tool for controlling the generation of executables and other
non-source files of a program from the program's source files.
=> GNU GCC C compiler (gcc) : The gcc package contains the GNU Compiler Collection version 4.1
=> GNU GCC C++ compiler (gcc-c++): This package adds C++ support to the GNU Compiler Collection.
You have total 3 options to download and install GCC compiler under Redhat / CentOS / Fedora Linux:
[a] Use GUI tool
[b] Install rpm from CDROM/DVD
[c] Download and install compiler from RHN over internet
Use GUI tool called system-config-packages to install gcc. Just type the following command and select gcc and above packages:
Mount your CD/DVD and install following packages using rpm command.
You can download and install packages using RHN and yum command:
评论