Account Links: Cart | Your Account | Logout

Skip to content

Red Hat Knowledgebase

Red Hat Knowledgebase Search:

Updated Within the Last:

New Solutions within the last day New Solutions within the last week New Solutions within the last month

Browse by topics:


Click to View a Topic
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<  133 of 594 >>

Solution Tools:


Email a Solution Postcard Printer version Submit a comment on this answer Update notifications Request an answer Back

Article Reference

Article ID: 4458
Last update: 12-03-04
Issue:
I need the gcc 2.96 version of g++ to compile a program on Red Hat Enterprise Linux 3, where can I get it?
Resolution:

Red Hat Enterprise Linux 3 has the compat-gcc-c++ package that provides g++296 from gcc 2.96.

It may be installed using up2date:

 
up2date -i compat-gcc-c++
                      

Alternatively, it may be downloaded from Red Hat Network (RHN) or from your install CD's and installed manually using the rpm command.

Note that compat-gcc is also required. If you use up2date to install compat-gcc-c++, the compat-gcc package will be downloaded and installed as a dependency for you. If you use RPM to install manually you will have to install both at once:

 
rpm -ivh compat-gcc-c++-<version>.rpm; compat-gcc-<version>.rpm
                      

To verify the package and view the files the package provides use the rpm command:

 
# rpm -ql compat-gcc-c++
/usr/bin/g++296
/usr/bin/i386-redhat-linux7-c++
/usr/bin/i386-redhat-linux7-g++
/usr/lib/gcc-lib
...
                      

The version of g++296 may now be verified with the command:

 
# g++296 -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux7/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-128)
                      


How well did this entry answer your question?


good wrong incomplete out of date
Red Hat Enterprise Linux > AS/ES/WS v. 3 > Issue <<   133  of  594  >>