๊ธ€ ์ž‘์„ฑ์ž: ๋˜ฅํด๋ฒ .
๋ฐ˜์‘ํ˜•
์ด ๊ธ€์€ CentOS7 ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑํ•˜์˜€์Šต๋‹ˆ๋‹ค.

 

ํ˜„์žฌ ๋‚ด gcc ๋ฒ„์ „ ํ™•์ธ


$ gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 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.

 

 

 

Developer Toolset ์„ค์น˜


 ์ผ๋ฐ˜์ ์ธ ๋ฐฉ๋ฒ•์œผ๋กœ gcc ๋ฒ„์ „์„ ์—…๋ฐ์ดํŠธํ•˜๋ ค๋ฉด ๋ฒˆ๊ฑฐ๋กญ๊ธฐ ๋•Œ๋ฌธ์— Developer Toolset์„ ์„ค์น˜ํ•ด์„œ ํ•œ ๋ฒˆ์— ์—…๋ฐ์ดํŠธ์‹œํ‚จ๋‹ค.

์ด ๊ธ€์„ ์ž‘์„ฑํ•˜๋Š” ๊ธฐ์ค€์œผ๋กœ Developer Toolset ์ตœ์‹  ๋ฒ„์ „์€ 8์ด๋‹ค.
https://www.softwarecollections.org/en/scls/user/rhscl/?search=devtoolset

 

$ sudo yum install centos-release-scl
$ sudo yum-config-manager --enable rhel-server-rhscl-7-rpms
$ sudo yum install devtoolset-8
$ scl enable devtoolset-8 bash

 

 

์ตœ์‹ ํ™”๋œ gcc ๋ฒ„์ „ ํ™•์ธ


$ gcc --version
gcc (GCC) 8.3.1 20190311 (Red Hat 8.3.1-3)
Copyright (C) 2018 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.
๋ฐ˜์‘ํ˜•