Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am struggling with the problem of Matlab mex compile. It needs specific old version of gcc compiler 4.4.6 . But in manager there is only 4.4 version. How could I specify it as 4.4.6? Or is it possible?

Next, I need to run it as gcc command. Currently my gcc command runs 4.7.2 version. How can I switch the gcc command to run the old version on Mint machine. Since installing only the compiler does not work for Matlab and it is calling plain gcc command.

share|improve this question
    
Are you okay fully replacing your local version? Or would you like side-by-side install of both? –  nerdwaller Dec 3 '12 at 1:35
    
side by side is more appropriate but I need to call it with needs to be default gcc. –  Erogol Dec 4 '12 at 18:16
add comment

1 Answer

up vote 3 down vote accepted

Just install the package gcc-4.4 along with the other version of gcc. The next step would be to change the default gcc to this specific version. Most elegant and easy way is using update-alternatives. This is all explained in this Stackoverflow.com answer.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.