note
g++: command not found 에러
gahee0416
2019. 9. 5. 10:24
cent os7에서 react 프로젝트를 빌드하려고 npm i 명령어를 실행하면
위와 같이 g++ 명령을 찾지 못했다는 에러가 발생했다.
이 경우에
sudo yum install gcc-c++
명령어로 해결했다.
추가로 react version이 낮은 프로젝트여서 그런건지는 모르겠는데
npm i 명령 실행 시 node-gyp 에러가 계속 발생했었다.
이 때는 node 버전을 좀 낮춰서 npm i 명령을 다시 실행 하니깐 해결 됐다.
다 테스트를 해 본 건 아니지만 node버전을 v6 대로 낮췄을 때 해결됐었다.
참고: https://unix.stackexchange.com/questions/140350/linux-g-command-not-found
linux + g++: command not found
I want to install on my Linux red-hat machine gettext-0.19.1.tar.xz. First I do the following cd gettext-0.19.1 ./configure make During make it fails on g++: command not found libtool: compile...
unix.stackexchange.com