Linux Mint의 GCC 마지막 업데이트

Linux Mint의 GCC 마지막 업데이트

Linux Mint에서 gcc를 업데이트했지만 확인해보니 설치되지 않은 것 같습니다. 문제는 무엇입니까?

joseph@joseph:~$ sudo apt install gcc-9
Reading package lists... Done
Building dependency tree       
Reading state information... Done
gcc-9 is already the newest version (9.2.1-17ubuntu1~18.04.1).
The following packages were automatically installed and are no longer required:
  codeblocks-common libcodeblocks0 libwxbase3.0-0v5 libwxgtk3.0-0v5
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 240 not upgraded.

joseph@joseph:~$ gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Copyright (C) 2017 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.

답변1

데비안 기반 배포판에는 동일한 소프트웨어의 여러 버전이 있을 수 있습니다.

를 확인하세요 /usr/bin/gcc. /etc/alternatives/gcc에 대한 심볼릭 링크인 에 대한 심볼릭 링크임을 알 수 있습니다 /usr/bin/gcc-7.

이 명령은 update-alternatives --config gcc올바른 버전을 선택할 수 있는 옵션을 제공합니다.

gcc-7을 제거하면 자동으로 다른 대안이 선택됩니다.

관련 정보