On Wed, Jun 11, 2008 at 10:15 AM, Mark Ryden <markryde@xxxxxxxxx> wrote: > Hello, > > I want to be able to build a kernel module of FC6 on an FC9 machine, > I build the module on the FC9 machine against an FC6 kernel tree. > However, when I insmod it, I get an error: it expects it to be built > agains the gcc version of FC6. > > I want to keep the gcc of FC9. > > I tried to install the fc6 gcc rpm, with -force, but this seems to > overwrite the previous version. > > My question is: is there a way to install two gcc rpms on the same machine? > You can use -i, --badreloc and --relocate (see rpm's man page). With the proper use of these you'll get the other gcc rpm installed off in some other directory like /opt/gcc-fc6. This may or may not work well though depeding on how hard coded the search for various items are within the gcc package. If it doesn't you'll need to just resort to building and installing gcc yourself (which is not really that hard). If it does work you've got some new problems though. You can't upgrade gcc now, as that will remove both gcc's. This will mean that you can either: upgrade one reinstall the other. install the new one remove the old one That last one is an "rpm -i" followed by an "rpm -e", and probably can be reversed. Cheers...james > (BTW: there is no compat version for gcc of FC6 in FC9) > > Regards, > Mark > > _______________________________________________ > Rpm-list mailing list > Rpm-list@xxxxxxxxxx > https://www.redhat.com/mailman/listinfo/rpm-list > _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list