Skip to content

How to run on macOS

Xiao Jia edited this page May 24, 2022 · 10 revisions
  1. Install Docker and open it

  2. Open Mac terminal 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 are with M1 chip, please run:

    docker run --platform linux/amd64 -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