LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Installing GCC 3.2 in Ubuntu 9.04 (http://www.linuxquestions.org/questions/linux-software-2/installing-gcc-3-2-in-ubuntu-9-04-a-776588/)

deneth 12-17-2009 11:33 PM

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

Kenichi Kato 12-18-2009 02:49 AM

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?

deneth 12-18-2009 03:36 AM

Quote:

Originally Posted by Kenichi Kato (Post 3796394)
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.

knudfl 12-18-2009 06:01 AM

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


All times are GMT -5. The time now is 09:27 AM.