LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-13-2002, 07:06 AM   #1
pika
LQ Newbie
 
Registered: May 2002
Location: Belgium
Distribution: Fedora 11
Posts: 10

Rep: Reputation: 0
Question upgrade gcc-c++ 2.96 to 3.2.1


Hi,

When I came across the all-known 'c compiler cannot create executables..." configure error I found out that there was no more c++ compiler support since I updated gcc itself.
The logical thing to was to download and install a 3.2.1 gcc-c++ package and to install it. When I tried to do this the following dependency problems were found:

libstdc++ = 3.2.1 is needed by gcc-c++-3.2.1-1
...same for devel package

I checked if I could update the libstdc++ package.... but the whole system depends on it so that was out of the question.

Now my question is : Is it possible to add c++ compiler support to gcc on a system that was originally installed with all gcc 2.96 packages ?

Thanks in advance guys

pika
 
Old 12-13-2002, 07:14 AM   #2
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
No it is not possible b/c 2.96 is not concidered a stable gcc release, what you need to upgrade are libstdc++, libgcc, libc, possibly glibc and of course gcc, I don't think it is too much hussle, all is on rpmfind.net
 
Old 12-13-2002, 07:27 AM   #3
pika
LQ Newbie
 
Registered: May 2002
Location: Belgium
Distribution: Fedora 11
Posts: 10

Original Poster
Rep: Reputation: 0
Thanks for your quick answer,

I already upgraded the packages you mentioned, except for the libstc++ package. Numerous gnome and kde applications depend on it, which is why I'm not able to upgrade that package. And I don't think '--force' would do any good to my system/core libs

Last edited by pika; 12-13-2002 at 07:30 AM.
 
Old 12-13-2002, 07:45 AM   #4
neo77777
LQ Addict
 
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Well a little work around
Code:
ls -l /usr/lib/*stdc*
-rw-r--r--    1 root     root       420238 Apr 12  2002 libstdc++-3-libc6.2-2-2.10.0.a
-r-xr-xr-x    1 root     root       426442 Apr 12  2002 libstdc++-3-libc6.2-2-2.10.0.so
lrwxrwxrwx    1 root     root           33 Jun 24 14:05 libstdc++-libc6.1-1.so.2 -> /usr/lib/libstdc++-libc6.2-2.so.3
lrwxrwxrwx    1 root     root           30 Jun 19 11:48 libstdc++-libc6.2-2.a.3 -> libstdc++-3-libc6.2-2-2.10.0.a
lrwxrwxrwx    1 root     root           31 Jun 19 11:22 libstdc++-libc6.2-2.so.3 -> libstdc++-3-libc6.2-2-2.10.0.so
this is before upgrade, now back up the most important lib to which everything is symlinked in this particular case it is libstdc++-3-libc6.2-2-2.10.0.so and libstdc++-3-libc6.2-2-2.10.0.a, put their copies away, now upgrade with --force and when the work is done put the libs back and symlink them appropriately.
I just remembered that RH ships with gcc-3.x.x which is called awkward gcc3, it should be on your installation CD's, if you haven't installed them yet install it (don't upgrade but install) it will create /usr/bin/gcc3 executable what you need to do is just
cp /usr/bin/gcc /usr/bin/gcc296 && ln -sf /usr/bin/gcc3 /usr/bin/gcc
 
Old 12-13-2002, 08:44 AM   #5
pika
LQ Newbie
 
Registered: May 2002
Location: Belgium
Distribution: Fedora 11
Posts: 10

Original Poster
Rep: Reputation: 0
I love workarounds ;-) , as long as everything keeps working afterwards, I'll give it a try as soon as I get the chance. Thanks for your answer.
 
  


Reply



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
upgrade GCC aleppos Linux - Newbie 1 08-08-2005 09:18 PM
how to upgrade gcc on redhat 9 kira Linux - Software 0 12-28-2004 12:16 AM
ld cannot find qt-mt after gcc upgrade liam_p Linux - Software 6 07-02-2004 08:59 AM
gcc Upgrade (RH 7.3) ejfuente Linux - Newbie 1 10-21-2003 09:37 AM
gcc upgrade tundra Linux - General 10 09-08-2002 03:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:07 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
Open Source Consulting | Domain Registration