I am running an Ubuntu 14.04-4 64bit. gcc --version
returns
(Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Yet, I need version 4.8.2-10
.
What I tried:
- I found the specific gcc version in a debian snapshot repository.
I adapted my
/etc/apt/sources.list
to contain the following two lines only:deb http://snapshot.debian.org/archive/debian/20131213T160912Z unstable main deb-src http://snapshot.debian.org/archive/debian/20131213T160912Z unstable main
As suggested here I added the required key
- I did
sudo apt-get -o Acquire::Check-Valid-Until=false update
sudo apt-get remove gcc
sudo apt-get install gcc
. This returned:... Preparing to unpack .../gcc_4%3a4.8.2-1_amd64.deb ... Unpacking gcc (4:4.8.2-1) ... Processing triggers for man-db (2.6.7.1-1ubuntu1) ... Setting up gcc (4:4.8.2-1) ...
Unfortunately, gcc --version
still returned
gcc (Ubuntu 4.8.4-2ubuntu1~14.04.1) 4.8.4
Removing and re-installing gcc-4.8
and gcc-4.8-base
returned in an error (unmet dependencies) or a strange warning (uninstalling more than 700mb).
How can I install this specific gcc version?
--program-suffix=482
http://www.linuxquestions.org/questions/linux-newbie-8/installing-gcc-4-8-2-on-opensuse-12-1-a-4175484799/#4 – Knud Larsen May 19 '16 at 19:22dpkg -i gcc-4.8_4.8.2-19ubuntu1_amd64.deb
. I got a "dependency problem" error. It says thatgcc-4.8 depends on cpp-4.8 (= 4.8.2-19ubuntu1); however: Version of cpp-4.8 on system is 4.8.4-2ubuntu1~14.04.3
– langlauf.io May 20 '16 at 18:27cpp-4.8 depends on gcc-4.8-base (= 4.8.2-19ubuntu1); however: Version of gcc-4.8-base:amd64 on system is 4.8.4-2ubuntu1~14.04.3.
– langlauf.io May 20 '16 at 18:29