make: g++: Command not found on CentOS/RHEL 7- FIXED

make: g++: Command not found on CentOS/RHEL 7- FIXED

A solution to g++ command not found an error while installing nodejs packages.

I was installing Browsertime on CentOS 7 and encountered this error.

info sharp Downloading prebuild-install WARN install No prebuilt binaries found (target=11.15.0 runtime=node arch=x64 libc= platform=linux) make: Entering directory `/usr/lib/node_modules/browsertime/node_modules/sharp/build' TOUCH Release/ CXX(target) Release/ make: g++: Command not found make: *** [Release/] Error 127 make: Leaving directory `/usr/lib/node_modules/browsertime/node_modules/sharp/build' gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2

Well, this could happen with any package which uses g++ library. To fix this error, all you got to do is install development tools with yum as below command.

yum groupinstall 'Development Tools'

Try to install what you were installing. It worked for me, and I hope for you too.


Our trusted sources

We only publish news from well-known cybercrime magazines via RSS. You will find here everything about hackers & cybercrime. Also you can visit the direct sources from us.

Just click on one of the buttons.


Check out our Guidebook page.  And read everything about it.  Also how to protect yourself from hacker attacks.  An all in one thing.