Hi,
I'm trying to build cppcheck and run it on heroku server,
when I'm initially starting the server I call this function :
function buildCPP() { dir_1 = exec("cd cppcheck && pwd", function(err_1, stdout_1, stderr) { if (err_1){ console.log('faild to cd to cpp check') console.log(err_1.message) } else { console.log(stdout_1) dir_2 = exec("make MATCHCOMPILER=yes CXXFLAGS=-O2", function(err_2, stdout_2, stderr) { if (err_2){ console.log('faild make cpp check') console.log(err_2.message) } else { console.log(stdout_2) dir_3 = exec("cd .. && pwd", function(err_3, stdout_3, stderr) { if (err_3){ console.log('faild to navigate back to dir') console.log(err_3.message) } else { console.log(stdout_3) } }) } }) } }) }
but on the make command I get this error :
2020-07-25T16:27:31.627497+00:00 app[web.1]: make: g++: Command not found 2020-07-25T16:27:31.627498+00:00 app[web.1]: make: *** [build/analyzerinfo.o] Error 127
any solutions for this?
Thanks!
Log in to post a comment.
Hi,
I'm trying to build cppcheck and run it on heroku server,
when I'm initially starting the server I call this function :
but on the make command I get this error :
2020-07-25T16:27:31.627497+00:00 app[web.1]: make: g++: Command not found
2020-07-25T16:27:31.627498+00:00 app[web.1]: make: *** [build/analyzerinfo.o] Error 127
any solutions for this?
Thanks!
Last edit: Hadar Epstein 2020-07-25