Solution to installation failure of vmwarw.lsgcc in gcc environment under RHEL6 (common method ). Recently in tossing RedHat, the version I installed is rhel-server-6.1-x86_64. RHEL6.1 does not have the gcc and gcc-c ++ environments by default. You can only find a local installation method. The following is a summary: The ultimate method: reinstall. When selecting the operating system type, check "development" in the check box, so that the system will automatically install gcc.
Solution to installation of VMware Tools gcc in the gcc environment under RHEL6 (common ).
Recently in tossing RedHat, the version I installed is rhel-server-6.1-x86_64.
By default, RHEL 6.1 does not have a gcc or gcc-c ++ environment. You can only install it locally. The following is a summary:
The ultimate method is reinstallation. When selecting the operating system type, check "development" in the check box so that the system will automatically install gcc.
The installation method is as follows:
Upload and Install the image rhel-server-6.1-x86_64-dvd.iso, then mount the image file,/mnt (if in a virtual machine, directly click VM-Install VMware Tools to automatically load), Note: Due to software version problems, the version numbers of the following rpm packages are different.
I. Attach a cd
# Mount/dev/cdrom/mnt
2. Go to the CD directory
# Cd/mnt/Packages/
2. Install the following rpm packages in sequence
# Rpm-ivh glibc-common-2.5-42.i386.rpm
# Rpm-ivh kernel-headers-2.6.18-164.el5.i386.rpm
# Rpm-ivh libgcc-4.1.2-46.el5.i386.rpm
# Rpm-ivh glibc-2.5-42.i686.rpm
# Rpm-ivh libgomp-4.4.0-6.el5.i386.rpm
# Rpm-ivh nscd-2.5-42.i386.rpm
# Rpm-ivh glibc-headers-2.5-42.i386.rpm
# Rpm-ivh glibc-devel-2.5-42.i386.rpm
# Rpm-ivh mpfr-2.4.1-6.el6.i686.rpm
# Rpm-ivh ppl-0.10.2-11.el6.i686.rpm
# Rpm-ivh cloog-ppl-0.15.7-1.2.el6.i686.rpm
# Rpm-ivh cpp-4.1.2-46.el5.i386.rpm
# Rpm-ivh gcc-4.1.2-46.el5.i386.rpm
(Note: The above is the installation of gcc)
# Rpm-ivh libstdc ++-4.1.2-46. el5.i386. rpm
# Rpm-ivh libstdc ++ devel-4.1.2-46.el5.i386.rpm
# Rpm-ivh gcc-c ++-4.1.2-46. el5.i386. rpm
(Note: The above is the installation of gcc-c ++)