ubuntu10.04 安装gcc4.1.2

After a bunch of searching to get gcc-4.1 & g++-4.1 in Ubuntu 10.10 (maverick), I found easy work around.

Add to the end of /etc/apt/sources.list source from 10.04 (lucid)

deb http://mirrors.us.kernel.org/ubuntu/ lucid main universe

Then run

sudo apt-get update

You have to specify version 4.1.2-27, as libstdc++6-4.1-dev has not been back ported to 4.1.2-29.

sudo apt-get install gcc-4.1=4.1.2-27ubuntu1 gcc-4.1-base=4.1.2-27ubuntu1 cpp-4.1=4.1.2-27ubuntu1 g++-4.1


update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.1 10



ubuntu 上有build-essential
centos 上有Development Tools

gcc 4.1.2 ;  g++; gdb, libssl-dev ;automake(>=1.9.6)、autoconfig 、 libtool

原文地址:https://www.cnblogs.com/silenceli/p/3372393.html