Re: Multiple gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jun 17, 2009 at 3:26 AM, Jakub Jelinek<jakub@xxxxxxxxxx> wrote:
> On Tue, Jun 16, 2009 at 04:16:51PM -0500, Brian Truter wrote:
>> Is it possible to install multiple gcc packages on Fedora?
>>
>> I am using gcc 4.4 from Fedora 11, but I would also like to install 4.3 from
>> Fedora 10, and switch compiles when needed by setting env variables, or
>> something similar. Is this possible, and if so, does anyone have any info?
>
> Just rpm2cpio the other gcc to a different directory.
> mkdir ~/gcc-4.3 && cd ~/gcc-4.3
> for i in *-4.3*.rpm; do rpm2cpio $i | cpio -pduv; done
>
> and then
> ~/gcc-4.3/usr/bin/gcc
> ~/gcc-4.3/usr/bin/g++
> ~/gcc-4.4/usr/bin/gfortran
> etc. should just work.
>

Curious, would the '--prefix' flag for RPM help?

-Mauriat

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux