카테고리 없음

nodered 오류 g++: error: unrecognized command line option ‘-std=gnu++14’" with gcc version 9.3.0ㅡㅡ((미해결))

아이티제어1998 2022. 10. 25. 15:21

https://stackoverflow.com/questions/70681713/g-error-unrecognized-command-line-option-std-gnu14-with-gcc-version-9

 

"g++: error: unrecognized command line option ‘-std=gnu++14’" with gcc version 9.3.0

I have the CentOS Linux release 7.9.2009 (Core) running in the VirtualBox, which was build by the Vagrant 2.2.19 and the Ansible 2.9.25 installed all the depedencies. On the machine there are insta...

stackoverflow.com

 

sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-9-gcc*
scl enable devtoolset-9 bash
npm install

 

https://forums.centos.org/viewtopic.php?t=59280 

 

No package centos-release-scl available - CentOS

General support questions moonsurfer Posts: 3 Joined: 2016/09/12 20:44:51 Post by moonsurfer » 2016/09/12 21:13:14 Hello all, I'm currently installing Foreman and I'm encountering a weird error. Foreman requires the use of centos-release-scl repository. I

forums.centos.org

yum repolist

repo id                               repo name                                                           status
base/7/x86_64                         CentOS-7 - Base                                                     10,071+1
epel/x86_64                           Extra Packages for Enterprise Linux 7 - x86_64                        13,736
extras/7/x86_64                       CentOS-7 - Extras                                                     453+62
updates/7/x86_64                      CentOS-7 - Updates                                                   4,299+1
repolist: 28,559

CentOS 6/7 에 gcc 7 및 관련된 개발도구 설치하기

sudo yum -y install centos-release-scl
  •  설치
## 설치
yum install epel-release

## 확인
yum repolist
  • remi 저장소

버전별로 패키지 URL이 다릅니다.

## CentOS 5: http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
## CentOS 6: http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
## CentOS 7: http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
  • epel, remi 저장소 파일 확인
ls -al /etc/yum.repos.d/

yum repository 삭제

  • /etc/yum.repos.d/ 에서 불필요한 repository 파일을 삭제 하면 됩니다.
rm -rf /etc/yum.repos.d/{REPO_NAME}.repo
  • cache 파일 삭제
rm -rf /var/cache/yum/x86_64
  • • Yum headers, packages, metadata 삭제
yum clean headers
yum clean packages
yum clean metadata

요렇게 해도 아무 소용없다..

======

 

GCC 컴파일러를 포함하여 개발 도구를 설치하려면 다음을 실행합니다.

sudo yum group install "Development Tools"

42개 설치됨



Installed:
  autoconf.noarch 0:2.69-11.el7         automake.noarch 0:1.13.4-3.el7        bison.x86_64 0:3.0.4-2.el7
  byacc.x86_64 0:1.9.20130304-3.el7     cscope.x86_64 0:15.8-10.el7           ctags.x86_64 0:5.8-13.el7
  diffstat.x86_64 0:1.57-4.el7          doxygen.x86_64 1:1.8.5-4.el7          flex.x86_64 0:2.5.37-6.el7
  gcc-gfortran.x86_64 0:4.8.5-44.el7    indent.x86_64 0:2.2.11-13.el7         intltool.noarch 0:0.50.2-7.el7
  libtool.x86_64 0:2.4.2-22.el7_3       patch.x86_64 0:2.7.1-12.el7_7         patchutils.x86_64 0:0.3.3-5.el7_9
  rcs.x86_64 0:5.9.0-7.el7              rpm-build.x86_64 0:4.11.3-48.el7_9    rpm-sign.x86_64 0:4.11.3-48.el7_9
  subversion.x86_64 0:1.7.14-16.el7     swig.x86_64 0:2.0.10-5.el7            systemtap.x86_64 0:4.0-13.el7

Dependency Installed:
  avahi-libs.x86_64 0:0.6.31-20.el7                     efivar-libs.x86_64 0:36-12.el7
  gettext-common-devel.noarch 0:0.19.8.1-3.el7          gettext-devel.x86_64 0:0.19.8.1-3.el7
  gnutls.x86_64 0:3.3.29-9.el7_6                        kernel-debug-devel.x86_64 0:3.10.0-1160.76.1.el7
  libgfortran.x86_64 0:4.8.5-44.el7                     libquadmath.x86_64 0:4.8.5-44.el7
  libquadmath-devel.x86_64 0:4.8.5-44.el7               m4.x86_64 0:1.4.16-10.el7
  mokutil.x86_64 0:15-8.el7                             neon.x86_64 0:0.30.0-4.el7
  nettle.x86_64 0:2.7.1-9.el7_9                         pakchois.x86_64 0:0.4-10.el7
  perl-Test-Harness.noarch 0:3.28-3.el7                 perl-Thread-Queue.noarch 0:3.02-2.el7
  perl-XML-Parser.x86_64 0:2.41-10.el7                  subversion-libs.x86_64 0:1.7.14-16.el7
  systemtap-client.x86_64 0:4.0-13.el7                  systemtap-devel.x86_64 0:4.0-13.el7
  trousers.x86_64 0:0.3.14-2.el7

Complete!

=== 버전확인===

[root@d]# gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-44)
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.