I'm trying to install cppcheck via telnet linux box, I have the cppcheck-1.67.tar file and I untar it. I dont see anything that will install it for me. Am I approaching this the correct way?
Thanks Tony
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I was installed cppcheck in Fedora. Then i tried to use it in command lin, i typed as below:
cppcheck simple.c
then i got these error message, how can i solve this error?
**cppcheck: Failed to load library configuration file 'std.cfg'. File not found
(information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without CFGDIR set. Either the std.cfg should be available in cfg or the CFGDIR should be configured.
Thanks a lot
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I wanted to run the Cppcheck bash script from Wireshark under Windows, so i had to install Cppcheck in cygwin. make install really only copies the Cppcheck executables resulting in the issue described by Jacky Wu.
When using CFGDIR at least the library configurations are copied to that directory. As long as no platform files are needed that is ok.
To keep it simple i just let Cppcheck use the directory "cppcheckcfg" in the file system root:
make clean
make CFGDIR=/cppcheckcfg
make install CFGDIR=/cppcheckcfg
This worked for me.
BillT wrote that the Makefile is not correct: https://stackoverflow.com/a/29496810/2392690
I did not specify DESTDIR, so it was left empty and there should be no issue then.
But i think it would be a good idea to check the Makefile.
Since this forum post (currently) has some of or actually the most views of all posts it seems as if installing Cppcheck on Linux is something many people are interested in/have problems with.
Maybe this could be made simpler or the documentation more detailed?
Last edit: versat 2018-03-12
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to install cppcheck via telnet linux box, I have the cppcheck-1.67.tar file and I untar it. I dont see anything that will install it for me. Am I approaching this the correct way?
Thanks Tony
see:
http://stackoverflow.com/questions/27552188/how-do-i-install-cppcheck-using-the-tar-file-in-linux
I was installed cppcheck in Fedora. Then i tried to use it in command lin, i typed as below:
then i got these error message, how can i solve this error?
**cppcheck: Failed to load library configuration file 'std.cfg'. File not found
(information) Failed to load std.cfg. Your Cppcheck installation is broken, please re-install. The Cppcheck binary was compiled without CFGDIR set. Either the std.cfg should be available in cfg or the CFGDIR should be configured.
Thanks a lot
I wanted to run the Cppcheck bash script from Wireshark under Windows, so i had to install Cppcheck in cygwin.
make install
really only copies the Cppcheck executables resulting in the issue described by Jacky Wu.When using CFGDIR at least the library configurations are copied to that directory. As long as no platform files are needed that is ok.
To keep it simple i just let Cppcheck use the directory "cppcheckcfg" in the file system root:
This worked for me.
BillT wrote that the Makefile is not correct:
https://stackoverflow.com/a/29496810/2392690
I did not specify DESTDIR, so it was left empty and there should be no issue then.
But i think it would be a good idea to check the Makefile.
Since this forum post (currently) has some of or actually the most views of all posts it seems as if installing Cppcheck on Linux is something many people are interested in/have problems with.
Maybe this could be made simpler or the documentation more detailed?
Last edit: versat 2018-03-12