Redian新闻
>
help needed-install gcc/g++ 4.7 on ubuntu 14.04
avatar
help needed-install gcc/g++ 4.7 on ubuntu 14.04# Unix - 噫吁兮,危乎高哉
b*s
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!
avatar
T*l
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!

avatar
T*l
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!

avatar
b*s
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!
avatar
a*y
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!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。