2011年5月6日星期五

Install g++-3.3 on Ubuntu 10.04

Ubuntu 10.04 seems not to support g++-3.3 anymore. Trying to install g++-3.3 via command apt-get install g++-3.3 gets errors of "Couldn't find package g++-3.3".

An alternative way is to install them manually, following these steps:

Download gcc/g++-3.3 install files form Ubuntu archive server http://archive.ubuntu.com/ubuntu/pool/main/g/gcc-3.3/
cpp-3.3_3.3.6-10_i386.deb
gcc-3.3_3.3.6-10_i386.deb
g++-3.3_3.3.6-10_i386.deb
gcc-3.3-base_3.3.6-10_i386.deb
libstdc++5_3.3.6-10_i386.deb
libstdc++5-3.3-dev_3.3.6-10_i386.deb

Then use the dpkg commands to install these deb files one by one:
sudo dpkg -i --force-depends gcc-3.3-base_3.3.6-10_i386.deb
sudo dpkg -i --force-depends cpp-3.3_3.3.6-10_i386.deb
sudo dpkg -i --force-depends gcc-3.3-base_3.3.6-10_i386.deb
sudo dpkg -i --force-depends g++-3.3_3.3.6-10_i386.deb
sudo dpkg -i --force-depends libstdc++5_3.3.6-10_i386.deb
sudo dpkg -i --force-depends libstdc++5-3.3-dev_3.3.6-10_i386.deb
See http://www.blitzbasic.com/Community/posts.php?topic=81247 for more..

没有评论: