Since the past few days the installation procedure from source is failing:
wget https://github.com/danmar/cppcheck/archive/refs/heads/main.zip unzip main.zip cd cppcheck-main make MATCHCOMPILER=yes FILESDIR=/usr/share/cppcheck HAVE_RULES=no CXXFLAGS="-O2 -DNDEBUG -Wall -Wno-sign-compare -Wno-unused-function"
There are a few warnings and notes, but no errors. However:
$ cppcheck --version Command 'cppcheck' not found, but can be installed with: sudo apt install cppcheck
Have also tried with make install, sudo make install and followed various suggestions from https://stackoverflow.com/questions/27552188/how-do-i-install-cppcheck-using-the-tar-file-on-linux
make install
sudo make install
$ gcc --version gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
Can someone explain the steps that I am missing?
I don't know it works for me. The PATH points at the path where the cppcheck binary is? if you write the path explicitly it works better? ./cppcheck ?
Ok, it looks like the PATH needs to be updated as well. Thanks.
Log in to post a comment.
Since the past few days the installation procedure from source is failing:
There are a few warnings and notes, but no errors. However:
Have also tried with
make install
,sudo make install
and followed various suggestions from https://stackoverflow.com/questions/27552188/how-do-i-install-cppcheck-using-the-tar-file-on-linuxCan someone explain the steps that I am missing?
I don't know it works for me. The PATH points at the path where the cppcheck binary is?
if you write the path explicitly it works better? ./cppcheck ?
Ok, it looks like the PATH needs to be updated as well. Thanks.