Debian Jessieの2番目のgccでgcc-4.7を/usr/bin/gcc-4.7に入れる方法は?

Debian Jessieの2番目の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のサポート

おすすめ記事