-
Notifications
You must be signed in to change notification settings - Fork 21
EE M Ubuntu 20.04 Packages
Joshua1023 edited this page Mar 1, 2024
·
4 revisions
注意:本页面涉及的资料仅供试用。了解或购买企业版请填写 https://jinshuju.net/f/GyZyxJ
下载以下 .deb
文件:
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/bear_3.0.18-1_amd64.deb
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/libabsl20210324_0~20210324.2-2_amd64.deb
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/libear_3.0.18-1_amd64.deb
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/libgrpc%2B%2B1_1.30.2-3build6_amd64.deb
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/libgrpc10_1.30.2-3build6_amd64.deb
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/libprotobuf23_3.12.4-1ubuntu7_amd64.deb
- https://enterprise-trial.obs.cn-east-3.myhuaweicloud.com/naivesystems-analyze-ubuntu20.04/naivesystems-analyze-ee-m-zh-opt_2024.1.0.0-1_amd64.deb
假设安装包下载到 /tmp/naivesystems
文件夹
sudo apt-get install -y --no-install-recommends /tmp/naivesystems/*.deb
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive TZ=Etc/UTC
RUN mkdir -p /tmp/naivesystems
COPY bear_3.0.18-1_amd64.deb /tmp/naivesystems/bear_3.0.18-1_amd64.deb
COPY libabsl20210324_0~20210324.2-2_amd64.deb /tmp/naivesystems/libabsl20210324_0~20210324.2-2_amd64.deb
COPY libear_3.0.18-1_amd64.deb /tmp/naivesystems/libear_3.0.18-1_amd64.deb
COPY libgrpc++1_1.30.2-3build6_amd64.deb /tmp/naivesystems/libgrpc++1_1.30.2-3build6_amd64.deb
COPY libgrpc10_1.30.2-3build6_amd64.deb /tmp/naivesystems/libgrpc10_1.30.2-3build6_amd64.deb
COPY libprotobuf23_3.12.4-1ubuntu7_amd64.deb /tmp/naivesystems/libprotobuf23_3.12.4-1ubuntu7_amd64.deb
COPY naivesystems-analyze-ee-s-zh-opt_2023.4.0.0-1_amd64.deb /tmp/naivesystems/naivesystems-analyze-ee-s-zh-opt_2023.4.0.0-1_amd64.deb
RUN apt-get update -y && apt-get install -y --no-install-recommends /tmp/naivesystems/*.deb
$ git clone https://github.com/naivesystems/analyze-demo.git
Cloning into 'analyze-demo'...
remote: Enumerating objects: 61, done.
remote: Counting objects: 100% (13/13), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 61 (delta 11), reused 5 (delta 5), pack-reused 48
Unpacking objects: 100% (61/61), 9.10 KiB | 517.00 KiB/s, done.
$ cd analyze-demo/
~/analyze-demo$ mkdir -p output
~/analyze-demo$ /opt/naivesystems/misra_analyzer -src_dir $PWD -config_dir $PWD/.naivesystems -results_dir $PWD/output -show_results
sudo apt-get install -y ./naivesystems-analyze-desktop_2024.2.0.0-1_amd64.deb
安装完成后会在桌面生成快捷方式,右键图标选择 allow launching:
启动快捷方式,并打开需要检查的项目所在文件夹(即上文 --src_dir
参数的值):
打开插件面板,点击运行图标:
检查完成后,可在插件面板中查看结果,点击问题可以跳转到相应代码位置: