Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-11-2008, 06:50 AM   #1
Registered: Dec 2008
Posts: 44

Rep: Reputation: 15
g++2.8.x compiler RPM's


I'm installing unixODBC and one of the prerequisites is

g++2.8.x (x>0)


libg++2.8.x (x>0)

For the libg++ I found the equivalent RPM's. I'm on RH Ent 5.0.

I've searched high and low for g++2.8.x (x>0), even better would be finding the resultant rpm's, since I'm a noobie to linux and am not that confident when it comes to installing new packages yet.

Any help will be gratefully received.

Cheers, Ed
Old 12-11-2008, 12:20 PM   #2
Senior Member
Registered: Oct 2003
Posts: 2,579

Rep: Reputation: 220Reputation: 220Reputation: 220
g++ is part of the standard compiler, gcc. gcc is the standard linux C compiler used to compile the linux kernel, among other things. To see what gcc packages you have installed run as root:

# rpm -qa | grep gcc

That should list all the packages with "gcc" as part of the package name that you currently have installed. Post the output here. The C++ compiler part of gcc is usually in a separate package named gcc-c++-<version number> in most distros. By way of illustration, here's one I found for Centos which is a RH Enterprise clone:

If you have access to the RH Enterprise 5.0 packages, use the native packages instead of what's on the web. There can be compatibility issues when you start mixing up gcc versions.

You have to install the gcc-c++ package to give gcc C++ capabilities and the C++ compiler is called with the "g++" command instead of "gcc" which is used for compiling C code.
Old 12-11-2008, 04:28 PM   #3
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.4 + 50+ other Linux OS, for test only.
Posts: 16,758

Rep: Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329Reputation: 3329
"unixODBC-2.2.14" doesn't need g++-2.8 ( or libg++2.8 )

but will compile with the default gcc-c++-4.1.2 (4.1.1)
from RH EL5.

The text about "2.8" is for older versions (year 1999?),

unixODBC-2.2.14 will even choose qt4 over qt3 if it is installed.
( If you need a GUI, else 'sh configure --without-gui' )

( I have build it on PCLinuxOS2007 )

'unixODBC-2.2.14.tar.gz' :

# 'yum install unixODBC' will install version 2.2.11
on CentOS 5.2 = RH EL 5.2 so it is probably in your package
manager too.


Last edited by knudfl; 02-17-2009 at 12:49 PM.
Old 12-12-2008, 05:21 AM   #4
Registered: Dec 2008
Posts: 44

Original Poster
Rep: Reputation: 15
kilgoretrout (a keen angler by the sounds of it) & knudfl (no comment),

Thanks both for your reply's.

firstly here's the gcc's already installed

[root@moran lib]# rpm -qa | grep gcc

I've just sorted out the unixODBC error when another member on another thread suggested I try

./configure --prefix=/tmp/unixODBC --without-gui

instead of

./configure --prefix=/tmp/unixODBC --enable-gui=No (this used to stop dead in it's tracks with an error)

I was getting the error.

that worked a dream, was then able to run make and install make w/o a glitch, libraries installed etc.

This whole install of package malarkey I found a bit troublesome. This yum command just seems to sort things on the spot. Does it resolve package dependencies etc.? I'll do a bit of my own research now since it may save me heaps of hassle down the road.

Thanks again


compiler, rpms

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 01:35 PM
My c compiler doesn't work after the cross-compiler installed Linux - Newbie 1 06-05-2007 04:55 AM
Are source RPM's and binary RPM's installed the same way? Simon Adebisi Linux - Software 3 06-28-2005 04:45 AM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 05:31 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration