Debian 9 安装gcc-4.8:

注: 1、Debian 9默认安装的gcc版本为6 2、没有Debian 9对应的gcc 4.8的源,继续使用Debian 8的源

vi /etc/apt/sources.list

deb http://ftp.us.debian.org/debian/ jessie main contrib non-free deb-src http://ftp.us.debian.org/debian/ jessie main contrib non-free :wq

apt-get update

apt-get install gcc-4.8 g++-4.8 g++-4.8-multilib