내용

글번호 247
작성자 heojk
작성일 2016-12-23 15:05:41
제목 Installing gcc 4.8 on CentOS 6(CentOS 6.x에서 xgboost 가 버전 문제로 설치 안될 때)
내용 CentOS 6.x에서 xgboost 가 gcc 패키지와 binutils 패키지의 버전이 낮아서 설치 되지 않을 때... 1. 루트 계정으로 로그인 합니다. $ su - password: 2. RPM-GPG 키 를 임포트 합니다. # rpm --import http://ftp.scientificlinux.org/linux/scientific/5x/x86_64/RPM-GPG-KEYs/RPM-GPG-KEY-cern 3. devtoolset scl(SOFTWARE COLLECTIONS (SCL) REPOSITORY) repository를 다운로드 합니다. # wget -O /etc/yum.repos.d/slc6-devtoolset.repo http://linuxsoft.cern.ch/cern/devtoolset/slc6-devtoolset.repo 4. devtoolset-2패키지를 설치합니다. 이 안에 gcc 4.8.2 버전과 binutils 2.23.52 버전이 있습니다. # yum install -y devtoolset-2 5. devtoolset-2 scl을 사용할 수 있게 합니다. # scl enable devtoolset-2 bash 6. 루트 사용자를 빠져 나갑니다. # exit 7. rstudio를 실행시킬 사용자는 source 명령으로 devtoolset-2 패키지를 사용할 수 있도록 합니다. 영구 반영을 시키려면 .bashrc파일에 추가하세요. $ source /opt/rh/devtoolset-2/enable 8. gcc 버전을 확인합니다. $ gcc --version gcc (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15) Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.