Created
February 7, 2019 23:52
-
-
Save geunho/ef4f5526343eafa519e83f3ad2ee8ec6 to your computer and use it in GitHub Desktop.
CentOS gcc 4.4에서 4.7 업그레이드
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################################################################################### | |
# Upgrade CentOS GCC 4.4 to 4.7 | |
# | |
# CentOS6의 기본 gcc 버전은 4.4, | |
# nodejs의 node-gyp 빌드를 하다보면 C++11 컴파일이 필요한데 gcc 4.7부터 11을 지원 | |
# 이런 경우 직접 업그레이드 해줘야한다. | |
# | |
#################################################################################### | |
# INSTALL | |
cd /etc/yum.repos.d | |
wget http://people.centos.org/tru/devtools-1.1/devtools-1.1.repo | |
yum --enablerepo=testing-1.1-devtools-6 install devtoolset-1.1-gcc devtoolset-1.1-gcc-c++ | |
# SETUP ENV | |
vim /etc/profile | |
PATH=/opt/centos/devtoolset-1.1/root/usr/bin:$PATH | |
# 다른 정의값보다 앞에 정의되어야 우선 순위를 갖는다. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment