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 10-04-2007, 09:29 PM   #1
nilathinesh
Member
 
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41

Rep: Reputation: 15
Question how to install dual version gcc


HOW TO INSTALL DUAL VERSION GCC

dear all,

i need to have dual version of GCC in my Fedora-6 i386 PC, i use gcc 3.4 for making other cross-compiler., which i use it.

now i am in need of GCC 4.1.2 or latest to be installed in PC.., but i am worry on issuing

Code:
yum install gcc-4.1.2
since this overwrite the existing gcc 3.4, which is to be preserved., help me on this.

Is there any way to inform the yum.. where to install the software (i mean what folder or installation path ... ),

Also in which directory they (yum or rpm)will install the software by default.

Also can you give small note on need of source RPM which i found in sites,

Much of Thanks in advance.

after tired on searching this topic, i posted to you all, sorry if it is duplicated again..

best regards,
nilathinesh
 
Old 10-05-2007, 08:31 PM   #2
mjmwired
Member
 
Registered: Apr 2004
Distribution: CentOS6, CentOS5, F16, F15, Ubuntu, OpenSuse
Posts: 620

Rep: Reputation: 39
What is the output of:
# rpm -qa | grep gcc

FC6 comes with 2 compilers, one is packaged 'gcc' (version 4.1.1 I think) the other 'compat-gcc-34'. The second does not come automatically installed.
http://www.mjmwired.net/resources/mj...-fc6.html#gcc3

If you install run 'yum update gcc' this will update the 'gcc' package (from ver 4.1.1 to 4.1.2).
If you run 'yum update compat-gcc-34' this will update the 3.4 version of the compiler.

The fedora updates for FC6 have gcc-4.1.2-13.fc6

I do think you will lose your version 3.4 compiler since it is a different package.

As a test run 'yum update gcc' - DO NOT HIT 'YES'
Just let it run and it will tell you EXACTLY what it will replace or update, if everything looks good then you can hit yes, otherwise hit no and NOTHING will be altered.
 
Old 10-05-2007, 08:58 PM   #3
studioj
Member
 
Registered: Oct 2006
Posts: 460

Rep: Reputation: 31
if your distribution is not set up to provide multiple gcc and many are not you will have to install the other ones you need from source in --prefix=/opt/gccxxx or wherever and use the bootstrap call on the compile
 
Old 10-06-2007, 12:34 AM   #4
nilathinesh
Member
 
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 15
i got the output as

libgcc-4.1.2-13.fc6
gcc-4.1.2-13.fc6
compat-gcc-34-3.4.6-4

on issuing the command "# rpm -qa | grep gcc"

and thanks for your information and the link.. mjmwired, i issued the command

yum install gcc-4.1.2

and it installed the the gcc-4.1.2 in /usr/bin, also previously i installed the gcc3.4 manually myself without knowing about the default existence of compact gcc-34..

now i am able to use both without problem. thanks once again..

now, thanks studioj, for your information on installing from the source..

but can you please explain about the "use the bootstrap call on the compile", thanks again..


can you give answer for my other questions too..,

1) Is there any way to inform the yum.. where to install the software (i mean what folder or installation path ... )

2) need of RPM source..is it same as like normal source..!
 
Old 10-06-2007, 12:42 AM   #5
nilathinesh
Member
 
Registered: Nov 2006
Distribution: Fedora 7 & 9, Ubuntu
Posts: 41

Original Poster
Rep: Reputation: 15
Smile

again..

i found little on bootstrapping...

bootstrapping options "bootstrap" or "bootstrap-lean"

These will compile the compiler, then recompile it twice with itself. This means that the compiler will get the benefit of its optimisation, and will also provide some degree of testing.

thanks
 
  


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
Install or not install newest GCC version on Solaris 10. Zepiroth Solaris / OpenSolaris 6 05-26-2006 02:42 AM
How do I install an old version of gcc thorney Linux - Newbie 1 11-25-2005 12:10 AM
unable to install latest gcc version sapadman Linux - Newbie 1 07-20-2004 05:22 PM
How to install old Gcc version ? vasilakis Linux - Newbie 5 06-10-2004 11:58 AM
Install older version of gcc s9902245 Linux - Newbie 1 09-16-2003 03:08 PM

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

All times are GMT -5. The time now is 04:28 AM.

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