How to install old and new version of gcc from rpm?
Hello,
I am trying to use Matlab MEX compiler. I am running Fedora 21 which comes with gcc 4.9.2. Matlab however only supports gcc 4.7.x. Although MEX does compile and stuff works, I do not see desired scaling when using OpenMP and I suspect its because of the gcc compiler. I was wondering if it is possible to load both 4.7.x and 4.9.x. I downloaded an rpm of 4.7.x built for fc19 and tried to install it yesterday. However, I get the following message when I attempt to yum localinstall it.
user@host:Downloads$ sudo yum localinstall gcc-4.7.2-8.fc19.x86_64.rpm
[sudo] password for user:
Loaded plugins: auto-update-debuginfo, langpacks
Examining gcc-4.7.2-8.fc19.x86_64.rpm: gcc-4.7.2-8.fc19.x86_64
gcc-4.7.2-8.fc19.x86_64.rpm: does not update installed package.
Nothing to do
Welcome to ask.fedora. You may not be aware, but Fedora 21 has just reached End Of Life and is no longer supported. You might consider upgrading to either version 22 or 23, both for security reasons and for the possibility that you'll get a newer version of MEX that works with current versions of gcc. Good luck, and keep us informed.