1

I need to install gcc 4.9 on ubuntu 15.10 because a library I really need (caffe and its cuda dependancies) requires such version or lower. I tried apt-get install gcc4.9 but it isn't working. Is there any way I can make it?

1
  • 2
    "it isn't working" - what happens, exactly? FYI the package name is gcc-4.9 (note the hyphen) Mar 15, 2016 at 22:17

1 Answer 1

1

The best way to correctly install gcc-4.9 is as follows:

sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-4.9 g++-4.9
1
  • Doesn't the toolchain-r ppa typically only have newer versions than those in the standard repository? I only see gcc-5.2.1 there for Wily Mar 15, 2016 at 23:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .