【发布时间】:2017-03-16 10:04:23
【问题描述】:
有一些关于旧版本 MATLAB 的帖子,但它们似乎不适用于 R2016a。
我正在尝试在 Ubuntu 16.04 上安装 MatConvNet。当我按照here 的描述运行vl_compilenn 命令时,它会给我一个警告,如下所示:
Building with 'gcc'.
Warning: You are using gcc version '5.4.1'. The version of gcc is not supported.
The version currently supported with MEX is '4.7.x'. For a list of currently supported
compilers see: http://www.mathworks.com/support/compilers/current_release.
我已经使用apt-get install gcc-4.7 g++-4.7 安装了 gcc-4.7 和 g++-4.7。如何强制 MATLAB 使用这些版本而不是默认版本?
【问题讨论】:
-
你按照provided in the documentation的步骤操作了吗?
-
是的,但它要么要求更改
$PATH(我不太愿意这样做),要么为每个mex调用更改编译器。 matlab启动时是否可以更改mex支持的gcc编译器?
标签: matlab ubuntu-16.04 gcc4.7 g++-4.7 matconvnet