<br><br><div class="gmail_quote">On Wed, Jun 17, 2009 at 6:05 AM, Jakub Jelinek <span dir="ltr">&lt;<a href="mailto:jakub@redhat.com">jakub@redhat.com</a>&gt;</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>
&gt; On Wed, Jun 17, 2009 at 3:26 AM, Jakub Jelinek&lt;<a href="mailto:jakub@redhat.com">jakub@redhat.com</a>&gt; wrote:<br>
&gt; &gt; On Tue, Jun 16, 2009 at 04:16:51PM -0500, Brian Truter wrote:<br>
&gt; &gt;&gt; Is it possible to install multiple gcc packages on Fedora?<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I am using gcc 4.4 from Fedora 11, but I would also like to install 4.3 from<br>
&gt; &gt;&gt; Fedora 10, and switch compiles when needed by setting env variables, or<br>
&gt; &gt;&gt; something similar. Is this possible, and if so, does anyone have any info?<br>
&gt; &gt;<br>
&gt; &gt; Just rpm2cpio the other gcc to a different directory.<br>
&gt; &gt; mkdir ~/gcc-4.3 &amp;&amp; cd ~/gcc-4.3<br>
&gt; &gt; for i in *-4.3*.rpm; do rpm2cpio $i | cpio -pduv; done<br>
&gt; &gt;<br>
&gt; &gt; and then<br>
&gt; &gt; ~/gcc-4.3/usr/bin/gcc<br>
&gt; &gt; ~/gcc-4.3/usr/bin/g++<br>
&gt; &gt; ~/gcc-4.4/usr/bin/gfortran<br>
&gt; &gt; etc. should just work.<br>
&gt; &gt;<br>
&gt;<br>
&gt; Curious, would the &#39;--prefix&#39; 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>