Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )

Advanced DNS Management
New ZoneEdit. New Managment.


Sign Up Now
Reply to this topicStart new topic
> Install Another G++ Version?
post Aug 8 2003, 04:00 AM
Post #1

Whats this Lie-nix Thing?

Group: Members
Posts: 4
Joined: 8-August 03
Member No.: 1,226


When I installed redhat 8.0 on machine A, g++ version 3.2 was automatically installed.
However, it seems to have problem compiling some C++ programs. These programs compile OK on another machine B running redhat 7.2 with g++ 2.96

I was wondering : what can I do now? Can I just download g++ 2.96, untar it somewhere in machine A, edit my personal path... so that whenever in my user account, when g++ is called, version 2.96 will be invoked?

Are there any complications?

Yee Seng.
Go to the top of the page
+Quote Post
post Aug 9 2003, 07:08 PM
Post #2

Its GNU/

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151

All you have to do is install the compat rpms....these are for RH9

There are similar version for RH8...

if you have and up2date account at redhat, you can install the latest updated version like this:

up2date compat-libstdc++ compat-libstdc++-devel compat-gcc-c++ compat-gcc

Or install rpm -Uvh from the RH 8.0 disks in the RPMS directory.

Now you can run a 2.96 gcc as: gcc296 and a 2.96 g++ as: g++296 You can do this export before you compile as well. ... or issue make commands like this:

CC=gcc296 make

Johnny Hughes
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:


RSS Lo-Fi Version Time is now: 19th July 2018 - 12:46 AM