Menu

cppcheck linux install

tony
2014-12-18
2018-03-08
  • tony

    tony - 2014-12-18

    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

     
  • Jacky Wu

    Jacky Wu - 2018-02-07

    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

     
  • versat

    versat - 2018-03-08

    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

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.