<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 6:05 AM, Jakub Jelinek <span dir="ltr"><<a href="mailto:jakub@redhat.com">jakub@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Wed, Jun 17, 2009 at 08:41:50AM -0400, Mauriat Miranda wrote:<br>
> On Wed, Jun 17, 2009 at 3:26 AM, Jakub Jelinek<<a href="mailto:jakub@redhat.com">jakub@redhat.com</a>> wrote:<br>
> > On Tue, Jun 16, 2009 at 04:16:51PM -0500, Brian Truter wrote:<br>
> >> Is it possible to install multiple gcc packages on Fedora?<br>
> >><br>
> >> I am using gcc 4.4 from Fedora 11, but I would also like to install 4.3 from<br>
> >> Fedora 10, and switch compiles when needed by setting env variables, or<br>
> >> something similar. Is this possible, and if so, does anyone have any info?<br>
> ><br>
> > Just rpm2cpio the other gcc to a different directory.<br>
> > mkdir ~/gcc-4.3 && cd ~/gcc-4.3<br>
> > for i in *-4.3*.rpm; do rpm2cpio $i | cpio -pduv; done<br>
> ><br>
> > and then<br>
> > ~/gcc-4.3/usr/bin/gcc<br>
> > ~/gcc-4.3/usr/bin/g++<br>
> > ~/gcc-4.4/usr/bin/gfortran<br>
> > etc. should just work.<br>
> ><br>
><br>
> Curious, would the '--prefix' flag for RPM help?<br>
<br>
</div>Likely, yes.<br></blockquote></div><br>Likely, no.<br><br>[root@localhost log]# rpm -qi gcc<br>Name        : gcc                          Relocations: (<b>not relocatable</b>)<br><br>