Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 10th September 2008, 20:50
indie1982 indie1982 is offline
Member
 
Join Date: Apr 2008
Posts: 42
Thanks: 4
Thanked 0 Times in 0 Posts
Default How do I downgrade gcc on Ubuntu?

I installed Ubuntu Hardy Heron back in May and then installed ISPConfig. Everything went fine and the server's been fine.

Since then gcc has been updated to 4.2 and the new version of ISPConfig doesn't like 4.2. How do I downgrade my gcc version to 3.4?

I tried apt-get remove gcc and apt-get install gcc-3.4 but then the ISPConfig installer says it can't find gcc.

Do I have to update a link somewhere so /usr/bin/gcc points to /usr/bin/gcc-3.4?

Any help would be greatly appreciated!
Reply With Quote
Sponsored Links
  #2  
Old 11th September 2008, 02:03
jon jon is offline
Member
 
Join Date: Jan 2007
Location: Canada
Posts: 87
Thanks: 12
Thanked 5 Times in 5 Posts
Send a message via Skype™ to jon
Default

you may need to remove the existing gcc link and recreate it, pointing to the new(old in your case) gcc
Reply With Quote
The Following User Says Thank You to jon For This Useful Post:
indie1982 (11th September 2008)
  #3  
Old 11th September 2008, 10:33
indie1982 indie1982 is offline
Member
 
Join Date: Apr 2008
Posts: 42
Thanks: 4
Thanked 0 Times in 0 Posts
 
Default

All sorted, I think!

apt-get remove gcc g++

apt-get install gcc-3.4 g++-3.4

ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
ln -s /usr/bin/g++-3.4 /usr/bin/g++

It's compiling as I type and it's gone further than before! Fingers crossed!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with linux gcc compilation and PlxSdk files surya1006 Programming/Scripts 0 5th September 2008 11:16
support for centos 5.2 henk Maarse Feature Requests 14 9th July 2008 21:19
Update Failed - need help URGENT! PLEASE shuvuu Installation/Configuration 7 22nd May 2008 08:01
Problem on restart bind9 satimis Server Operation 6 30th October 2007 02:01
Fedora Core 6 install issues moos3 Installation/Configuration 10 22nd March 2007 18:25


All times are GMT +2. The time now is 14:01.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.