How to install g ++ 2.0

Source: Internet
Author: User
How to install g ++ 2.0-General Linux technology-Linux technology and application information, the following is a detailed description. There is the Linux system. one system has g ++, and the other has no g ++.

Prerequisites:
Lincase15:
Lincase15_sam_1_1_1 SAM001:> which g ++
/Usr/bin/g ++
Lincase15_sam_1_1_1 SAM001:> uname-
Linux Lincase15_sam_1_1_1 2.6.18-194. el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
Lincase15_sam_1_1_1 SAM001:> cat/proc/version
Linux version 2.6.18-194. el5 (mockbuild@x86-005.build.bos.redhat.com) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48) #1 SMP Tue Mar 16 21:52:39 EDT 2010
Lincase15_sam_1_1_1 SAM001:> g ++-v
Using built-in specs.
Target: x86_64-redhat-linux
Configured :.. /configure -- prefix =/usr -- mandir =/usr/share/man -- infodir =/usr/share/info -- enable-shared -- enable-threads = posix -- enable-checking = release -- with-system-zlib -- enable-_ cxa_atexit -- disable-libunwind-exceptions -- enable-libgcj-multifile -- enable-versions ages = c, c ++, objc, obj-c ++, java, fortran, ada -- enable-java-awt = gtk -- disable-dssi -- disable-plugin -- with-java-home =/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre -- with-cpu = generic -- host = x86_64-redhat-linux
Thread model: posix
Gcc version 4.1.2 20080704 (Red Hat 4.1.2-54)

Lincase05:
Lincase05_sam_1_1_1 SAM001:> which g ++
/Usr/bin/which: no g ++ in (/opt/TimesTen/spatial/bin:/Spatial/msc/active/patch: /opt/Spatial/msc/active/bin:/Spatial/EMS/active/patch:/opt/Spatial/EMS/active/bin:/Spatial/tools: /opt/Spatial/msc/active/tools:/opt/Spatial/msc/active/tools/scripts:/opt/Spatial/msc/active/installation: /usr/xpg4/bin:/usr/board/tools/sol:/usr/sbin:/usr/bin: /sbin :.)
Lincase05_sam_1_1_1 SAM001:> uname-
Linux Lincase05_sam_1_1_1 2.6.18-53. el5xen #1 SMP Wed Oct 10 16:48:44 EDT 2007 x86_64 x86_64 x86_64 GNU/Linux
Lincase05_sam_1_1_1 SAM001:> cat/proc/version
Linux version 2.6.18-53. el5xen (brewbuilder@hs20-bc1-7.build.redhat.com) (gcc version 4.1.2 20070626 (Red Hat 4.1.2-14) #1 SMP Wed Oct 10 16:48:44 EDT 2007
Lincase05_sam_1_1_1 SAM001:> g ++-v
-Bash: g ++: command not found


Problem:
I have installed a cppcheck software and cannot install it. an error is prompted:
Lincase15_sam_1_1_1 SAM001:> make
G ++-Ilib-Iexternals/tinyxml-O2-DNDEBUG-Wall-std = c ++ 0x-c-o lib/check64bit. o lib/check64bit. cpp
G ++: error trying to exec 'cc1plus ': execvp: No such file or directory
Make: *** [lib/check64bit. o] Error 1


Lincase05_sam_1_1_1 SAM001:> make
G ++-Ilib-Iexternals/tinyxml-O2-DNDEBUG-Wall-std = c ++ 0x-c-o lib/check64bit. o lib/check64bit. cpp
Make: g ++: Command not found
Make: *** [lib/check64bit. o] Error 127

For lincase05:
Lincase05_sam_1_1_1 SAM001:> yum install g ++-cc
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: g ++-cc
Nothing to do

Lincase05_sam_1_1_1 SAM001:> yum install g ++
Loading "security" plugin
Loading "installonlyn" plugin
Loading "rhnplugin" plugin
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
Parsing package install arguments
No Match for argument: g ++
Nothing to do

For lincase15:
Lincase15_sam_1_1_1 SAM001:> yum install g ++-cc
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package g ++-cc available.
Nothing to do
Lincase15_sam_1_1_1 SAM001:> yum install g ++
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package g ++ available.
Nothing to do

Query related information: This system is not registered with RHN. because RHN is not registered in Red Hat

Please advise me how to solve this problem. It is best to be specific. thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.