安装 4.7.3 后,Linux 仍使用 gcc 4.8.4 进行编译

安装 4.7.3 后,Linux 仍使用 gcc 4.8.4 进行编译

我正在尝试在 Linux 上从该网站构建代码。https://www2.eecs.berkeley.edu/Research/Projects/CS/vision/grouping/segbench/当我在目录中运行 gmake install (按照指示)时,出现以下错误,告诉我使用 gcc 4.7.x。

Building with 'g++'.
Warning: You are using gcc version '4.8.4'. 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. 
Error using mex
In file included from

我按照这个帖子安装了 gcc 版本 4.7.3如何激活 gcc 4.7 版本?并通过输入 gcc -v 验证了我的 gcc 4.7.3 版本。

sudo apt-get install gcc-4.7
sudo rm /usr/bin/gcc
sudo ln -s /usr/bin/gcc-4.7 /usr/bin/gcc

所以我不确定为什么它仍然尝试使用 4.8.4 进行构建。希望有人能帮助我。

相关内容