Reprint/redhat install gcc

I've been tossing around with RedHat recently, and the version I installed is rhel-server-6.1-x86_64. RHEL 6.1 does not have gcc and gcc-c++ environments by default, and I have not purchased genuine services.
I can only find a way to install it locally. The summary method is as follows:
upload and install the mirror rhel-server-6.1-x86_64-dvd.iso,
and then hang the mirror file, such as /mnt
# mount -o loop rhel-server-6.1-x86_64-dvd .iso /mnt
# cd /mnt/Packages
# rpm -ivh glibc-common-
2.12-1.25.el6.x86_64.rpm # rpm -ivh kernel-headers-2.6.32-131.0.15.el6.x86_64.rpm
# rpm -ivh libgcc-4.4.5-6.el6.x86_64.rpm
# rpm -ivh glibc-
2.12-1.25.el6.x86_64.rpm # rpm -ivh libgomp-4.4.5-6.el6.x86_64.rpm
# rpm - ivh nscd-2.12-1.25.el6.x86_64.rpm
# rpm -ivh glibc-headers-2.12-1.25.el6.x86_64.rpm
# rpm -ivh glibc-devel-2.12-1.25.el6.x86_64.rpm
# rpm -ivh mpfr-2.4.1-6.el6.x86_64.rpm
# rpm -ivh ppl-0.10.2-11.el6.x86_64.rpm
# rpm -ivh cloog-ppl-0.15.7-1.2.el6.x86_64.rpm
# rpm -ivh cpp-4.4.5-6.el6. x86_64.rpm
# rpm -ivh gcc-4.4.5-6.el6.x86_64.rpm
Note: The above is to install gcc, the software installation order can not be wrong.
********************************************
# rpm -ivh libstdc++-4.4. 5-6.el6.x86_64.rpm
# rpm -ivh libstdc++-devel-4.4.5-6.el6.x86_64.rpm
# rpm -ivh gcc-c++-4.4.5-6.el6.x86_64.rpm
Note: Above is to install gcc-c++

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326678062&siteId=291194637