b********s 发帖数: 436 | 1 I have installed Matlab 2014a on Ubuntu 14.04. The supported compiler for
this Matlab is gcc/g++ 4.7. However, the Ubuntu 14.04 comes with a default
version of gcc 4.8. Do you know how I can install gcc 4.7, rather than
compiling the program with 4.8? In other words, the Matlab 2014a only
supports the GCC 4.7. I cannot use gcc 4.8.
Thanks very much for your help! | T**********l 发帖数: 12149 | 2
【在 b********s 的大作中提到】 : I have installed Matlab 2014a on Ubuntu 14.04. The supported compiler for : this Matlab is gcc/g++ 4.7. However, the Ubuntu 14.04 comes with a default : version of gcc 4.8. Do you know how I can install gcc 4.7, rather than : compiling the program with 4.8? In other words, the Matlab 2014a only : supports the GCC 4.7. I cannot use gcc 4.8. : Thanks very much for your help!
| T**********l 发帖数: 12149 | 3
【在 b********s 的大作中提到】 : I have installed Matlab 2014a on Ubuntu 14.04. The supported compiler for : this Matlab is gcc/g++ 4.7. However, the Ubuntu 14.04 comes with a default : version of gcc 4.8. Do you know how I can install gcc 4.7, rather than : compiling the program with 4.8? In other words, the Matlab 2014a only : supports the GCC 4.7. I cannot use gcc 4.8. : Thanks very much for your help!
| b********s 发帖数: 436 | 4 I have installed Matlab 2014a on Ubuntu 14.04. The supported compiler for
this Matlab is gcc/g++ 4.7. However, the Ubuntu 14.04 comes with a default
version of gcc 4.8. Do you know how I can install gcc 4.7, rather than
compiling the program with 4.8? In other words, the Matlab 2014a only
supports the GCC 4.7. I cannot use gcc 4.8.
Thanks very much for your help! | a*******y 发帖数: 15 | 5 You can modify the mexopts.sh file, change the variables like the following
CC='gcc-4.7'
CXX='g++-4.7'
and save it to ~/.matlab/R2014a/
For installing gcc-4.7, run the following command
sudo apt-get install gcc-4.7
【在 b********s 的大作中提到】 : I have installed Matlab 2014a on Ubuntu 14.04. The supported compiler for : this Matlab is gcc/g++ 4.7. However, the Ubuntu 14.04 comes with a default : version of gcc 4.8. Do you know how I can install gcc 4.7, rather than : compiling the program with 4.8? In other words, the Matlab 2014a only : supports the GCC 4.7. I cannot use gcc 4.8. : Thanks very much for your help!
|
|