LoginSignup
0
0

More than 5 years have passed since last update.

Ubuntu 16.04でgcc-4のエラー

Last updated at Posted at 2017-06-19

Ubuntu16.04はデフォルトでgcc-5系を使っているはずなのに、
以下のリンクのような、gcc-4系のせいで落ちるエラーが発生。
https://github.com/BVLC/caffe/issues/5128

使っていそうなgccはgcc-5のリンクになっている。
$ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 14 6月 7 09:31 /usr/bin/gcc -> /usr/bin/gcc-5

apt-getで入れなおしても直らない。
sudo apt-get install libgcc-5-dev

whcich gcc
で確認すると、anaconda内のgccを参照するようになっていた。
anacondaをインストールすると、gccの参照先が自動で変わってしまうらしい。

condaでgccを入れなおすと解決した。
conda install -c salford_systems libgcc-5=5.4.0
https://anaconda.org/salford_systems/libgcc-5

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0