IT 세상 해석하기

[Centos] 리눅스 컴파일러 gcc 설치 본문

사용설명서/Window

[Centos] 리눅스 컴파일러 gcc 설치

ikohong 2019. 12. 6. 18:36
728x90
반응형

[Centos] 리눅스 컴파일러 gcc 설치

By i!kohong(아이코홍)


설치환경 : 가상화컴퓨터 (Hyper_V) | CentOS 6.8 mini

 

설치전 gcc 설치여부 확인하기

# rpm -qa | grep ^gcc

# yum list installed gcc

gcc 설치 명령어

 

# yum install gcc

gcc 설치 확인하기

 

# rpm -qa gcc

# yum list installed gcc

# gcc

gcc 컴파일 해보기

 

# gcc -O -o hello hello.c

컴파일된 파일 실행해보기

 

# ./hello

728x90
반응형
Comments