LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



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

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


Hi,

I'm installing unixODBC and one of the prerequisites is

g++2.8.x (x>0)

and

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
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,333

Rep: Reputation: 143Reputation: 143
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:

http://rpm.pbone.net/index.php3/stat....i386.rpm.html

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
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 14,266

Rep: Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661Reputation: 2661
"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?),
AFAIK.

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' : http://www.unixodbc.org/

# '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.

Regards

Last edited by knudfl; 02-17-2009 at 12:49 PM.
 
Old 12-12-2008, 05:21 AM   #4
nedzer
Member
 
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
gcc-4.1.2-42.el5
gcc-c++-4.1.2-42.el5
compat-gcc-34-3.4.6-4
compat-gcc-34-c++-3.4.6-4
gcc-gfortran-4.1.2-42.el5
libgcc-4.1.2-42.el5

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
 
  


Reply

Tags
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 heracles.cn 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


All times are GMT -5. The time now is 11:57 PM.

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