Menu

Installation from source failing

figaro_
2022-08-20
2022-08-21
  •  figaro_

    figaro_ - 2022-08-20

    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

    $ gcc --version
    gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0
    

    Can someone explain the steps that I am missing?

     
  • Daniel Marjamäki

    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 ?

     
  •  figaro_

    figaro_ - 2022-08-21

    Ok, it looks like the PATH needs to be updated as well. Thanks.

     

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.