Skip to content

How to run on Windows

Alan Liang edited this page Jun 11, 2022 · 8 revisions
  1. Install Docker and open it

  2. Open Windows PowerShell and run the following commands:

    Get demo code:

    git clone https://github.com/naivesystems/analyze-demo.git
    cd analyze-demo
    mkdir output

    Run NaiveSystems™ Analyze with Docker:

    docker run -v ${pwd}:/src -v ${pwd}/.naivesystems:/config -v ${pwd}/output:/output ccr.ccs.tencentyun.com/naivesystems/analyze:2022.1.0.515002 /opt/naivesystems/misra_analyzer -show_results
  3. If you see this error:

    standard_init_linux.go:228: exec user process caused: no such file or directory

    Make sure that the text-line ending format of run_analyzer is LF instead of CRLF (use Visual Studio Code or modify Git configuration settings)