ERROR 삽질

No CMAKE_CXX_COMPILER could be found

2023. 4. 17. 18:28

** build tool 이 없다는 소리 입니다
$ sudo apt install build-essential

-- The CXX compiler identification is unknown
-- The C compiler identification is GNU 9.4.0
CMake Error at CMakeLists.txt:113 (enable_language):
  No CMAKE_CXX_COMPILER could be found.

  Tell CMake where to find the compiler by setting either the environment
  variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
  to the compiler, or to the compiler name if it is in the PATH.


-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- broken
CMake Error at /usr/share/cmake-3.16/Modules/CMakeTestCCompiler.cmake:60 (message):
  The C compiler

    "/usr/bin/cc"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /build/CMakeFiles/CMakeTmp
    
    Run Build Command(s):/usr/bin/make cmTC_a85a7/fast && /usr/bin/make -f CMakeFiles/cmTC_a85a7.dir/build.make CMakeFiles/cmTC_a85a7.dir/build
    make[1]: Entering directory ''
    Building C object CMakeFiles/cmTC_a85a7.dir/testCCompiler.c.o
    /usr/bin/cc   -fPIE   -o CMakeFiles/cmTC_a85a7.dir/testCCompiler.c.o   -c /home/dev/install_thirdparty/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_a85a7
    /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_a85a7.dir/link.txt --verbose=1
    /usr/bin/cc      CMakeFiles/cmTC_a85a7.dir/testCCompiler.c.o  -o cmTC_a85a7 
    /usr/bin/ld: cannot find Scrt1.o: No such file or directory
    /usr/bin/ld: cannot find crti.o: No such file or directory
    collect2: error: ld returned 1 exit status
    make[1]: *** [CMakeFiles/cmTC_a85a7.dir/build.make:87: cmTC_a85a7] Error 1
    make[1]: Leaving directory '
    make: *** [Makefile:121: cmTC_a85a7/fast] Error 2
    
    

  

  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:113 (enable_language)


-- Configuring incomplete, errors occurred!
저작자표시 (새창열림)

'ERROR 삽질' 카테고리의 다른 글

build-essential : Depends: libc6-dev but it is not going to be installed or libc-dev Depends: g++ (>= 4:9.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.  (1) 2023.04.17
SyntaxError: Non-ASCII character '\xec' in file /home/a307/xycar_ws/src/test_my1/src/sub.py on line 9, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details  (0) 2023.03.28
[Ubuntu] Bluetooth module not found  (0) 2023.03.27
[NVIDIA] drm: nv_drm_maseter_set *ERROR*  (0) 2023.03.27
[Git] remote: fatal error in commit_refsTo [remote rejected] Ref -> Ref (failure)error: failed to push some refs to 'https://github.com/~~~'  (0) 2023.03.27
'ERROR 삽질' 카테고리의 다른 글
  • build-essential : Depends: libc6-dev but it is not going to be installed or libc-dev Depends: g++ (>= 4:9.2) but it is not going to be installed E: Unable to correct problems, you have held broken packages.
  • SyntaxError: Non-ASCII character '\xec' in file /home/a307/xycar_ws/src/test_my1/src/sub.py on line 9, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
  • [Ubuntu] Bluetooth module not found
  • [NVIDIA] drm: nv_drm_maseter_set *ERROR*
capaca
capaca
CaPacapaca 님의 블로그입니다.
capaca
CaPa
capaca
  • 분류 전체보기
    • 개념정리
    • 논문, 강의
    • 수강
      • 강의
      • Hugging Face
    • Code
      • Python
      • Python-Gym, Stable-baseline..
      • C++
      • CMake
    • 자료구조&알고리즘
      • 프로그래머스
      • 백준알고리즘
      • CodeUp
      • 이코테
    • Development
    • ERROR 삽질
    • ETC
      • Navigation, Collision avoid..
      • Dataset
    • 기타참고
      • TODO
      • 논문 작성 참고

블로그 메뉴

  • 홈
  • TOOL
  • Github
  • Role

공지사항

hELLO · Designed By 정상우.
글쓰기 / 관리자
capaca
No CMAKE_CXX_COMPILER could be found
상단으로

티스토리툴바

개인정보

  • 티스토리 홈
  • 포럼
  • 로그인

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.