首页新闻找找看学习计划

linux 下matlab和c++的混合编程,gcc的安装

0
悬赏园豆:5 [待解决问题]

/usr/local/MATLAB/R2012a/bin/mex: 1653: gcc: not found

Warning: You are using gcc version "".  The version
         currently supported with MEX is "4.4.6".
         For a list of currently supported compilers see: 
         http://www.mathworks.com/support/compilers/current_release/


    mex:  mex_oe.cc  not a normal file or does not exist.
gcc编译器根本不存在,但是在命令中检测gcc的版本:
yanzhixue@ubuntu:~$ gcc -v
The program 'gcc' can be found in the following packages:
* gcc
* pentium-builder
Try: sudo apt-get install <selected package>
yanzhixue@ubuntu:~$ sudo apt-get install gcc
[sudo] password for yanzhixue: 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 208 not upgraded.

再进行检测
yanzhixue@ubuntu:~$ gcc -v
The program 'gcc' can be found in the following packages:
* gcc
* pentium-builder
Try: sudo apt-get install <selected package>

提示已经是新版本了,但是还是提示这个跟没有装似的,陷入了死循环

胭脂雪的主页 胭脂雪 | 菜鸟二级 | 园豆:205
提问于:2013-04-19 09:16
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册