Debian Jessie의 두 번째 gcc로 gcc-4.7을 /usr/bin/gcc-4.7에 넣는 방법은 무엇입니까?

Debian Jessie의 두 번째 gcc로 gcc-4.7을 /usr/bin/gcc-4.7에 넣는 방법은 무엇입니까?

내 gcc 4.9를 유지하고 싶지만 스레드에서 볼 수 있듯이 4.7은 안정적인 Debian에서 지원되지 않기 때문에 Matlab에서 gcc 4.7을 사용하도록 합니다.Debian Jessie: gcc-4.7이 gcc-4.8과 충돌하는 이유는 무엇입니까? 나는 다음을 수행했지만 Jessie를 위해 아무것도 하지 않았습니다.MATLAB2016에는 gcc 4.7.x가 필요합니다.

# https://packages.debian.org/search?keywords=gcc-4.7
apt-cache search gcc-4.7 

apt-get그러나 다른 목적이 아닌 Matlab 시스템에서 gcc-4.7을 얻고 싶기 때문에 이것이 갈 길이 아니라고 생각합니다 . Matlab에서 잘못된 gcc를 사용할 때의 경고 예

MEX completed successfully.
Building with 'gcc'.
Warning: You are using gcc version '4.9.2'. 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. 

OS: Debian 8.5 64비트
Linux 커널: 백포트된 4.6
하드웨어: Asus Zenbook UX303UA

답변1

이는 귀하가 언급한 질문에 대한 답변은 아니지만 근본적인 문제를 해결합니다. Matlab 2016b로 업그레이드할 수 있습니다.GCC 4.9 지원.

관련 정보