LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-17-2009, 11:33 PM   #1
deneth
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Installing GCC 3.2 in Ubuntu 9.04


hi all;

Im facing a great difficulty in installing GCC 3.2 in the ubuntu 9.04. The reason is have to build a library with it and due to changes in GCC 4.3 which is currently in the system the compilation fails.

So i tried various post but still couldn't get it done. I reffed to the post at

http://www.linuxquestions.org/questi...tu-8.4-764285/

and installed GCC 3.4 but when i tried

./configure CC=gcc-4.1 CXX=g++-4.1

i get errors

configure: warning: CXX=g++-3.4.6: invalid host type
configure: warning: CXX=g++-3.4.6: invalid host type
configure: error: can only configure for one host and one target at a time

I have already installed GCC 3.4 using apt-get and also build essentials.

I would be grateful if some one could guide me on installing GCC 3.2 in my ubuntu box.

thankz
deneth
 
Old 12-18-2009, 02:49 AM   #2
Kenichi Kato
Member
 
Registered: Jun 2007
Location: Asia
Distribution: Ubuntu, Fedora, CentOS & TCL
Posts: 62
Blog Entries: 1

Rep: Reputation: 16
I presume you need to use GCC 3.2. So, why not use QEMU (or VirtualBox from Sun) & run an older distro that comes with this version of GCC instead?
 
Old 12-18-2009, 03:36 AM   #3
deneth
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Kenichi Kato View Post
I presume you need to use GCC 3.2. So, why not use QEMU (or VirtualBox from Sun) & run an older distro that comes with this version of GCC instead?
Actually i have already done that. Running virtual box. But even the latest release available in ubuntu is having gcc 4.1 which still doesn't facilitate my requirement.
 
Old 12-18-2009, 06:01 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,563

Rep: Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512Reputation: 2512
The method to use gcc-3.4, g++-3.4 :

1) ./configure
2) make CC=gcc-3.4 CXX=g++-3.4
.. and / or edit Makefile.in ( + may be Makefile ) :
CC = gcc-3.4
CXX = g++-3.4

.....

The perfect Linux having a 3.2 system compiler :
CentOS 3.9 > > gcc-3.2.3 / g++-3.2.3.
.....
 
  


Reply

Tags
gcc


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
installing gcc 3.4 in ubuntu 8.4 charix Linux - Software 4 10-26-2009 01:46 PM
Installing vmware on Open Suse 11.1 - Requires original gcc 4.32 - gcc now 4.3 cyclops.matrix Linux - Software 2 08-31-2009 02:52 PM
installing emacs and gcc in ubuntu without a network connection nunya_biniss Linux - Newbie 1 10-05-2007 02:41 PM
installing gcc 3.3.6 on Ubuntu 6.10 enzom83 Linux - Software 1 12-29-2006 11:00 AM
Installing GCC 3.1 over GCC 2.96...? aaronluke Linux - General 3 09-27-2002 05:28 AM


All times are GMT -5. The time now is 02:19 AM.

Main Menu
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