CentOS 6.5가 설치된 장비에서 conda(버전 4.7.12)를 이용해 gcc4.8.5를 설치하려고 하는데 다음과 같은 오류가 발생하였다.

stdout: Installation failed: gcc is not able to compile a simple 'Hello, World' program.
stderr: (anaconda 디렉토리)/envs/gnu/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.8.5/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory

mpfr 버전이 3.x가 필요한데 gcc에 필요한 패키지들을 자동으로 설치할 때 다른 버전으로 깔려서  발생한 문제였다.

버전 의존성을 체크하지 않는것 같다.

다음과 같이 하면 문제 없이 설치된다.

conda install -c anaconda mpfr=3
conda install -c anaconda gcc

 

+ Recent posts