博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
p4c-bm安装
阅读量:7082 次
发布时间:2019-06-28

本文共 1068 字,大约阅读时间需要 3 分钟。

Generates the JSON configuration for the behavioral-model (bmv2).它是用来形成 行为模型BMV2 的 JSON配置 的。

Important: the PD has been moved out of this repository and split between the bmv2 repository (for fixed part of the PD) and the new p4-build repository (build infrastructure for the auto-generated / program-dependent part of the PD).

目前正在理清楚我所安装的这些工具之间的关系,在p4behavioral-model里面提到要安装这个工具。

安装的过程很顺利。

安装:To install p4c-bm on your machine:

照样,将fork到自己的仓库.

git clone 下来。

cd 进目录,然后执行以下:

sudo pip install -r requirements.txtsudo pip install -r requirements_v1_1.txtsudo python setup.py install

第二条命令用于编译P4v1.1的程序。

使用它:Using p4c-bm

Try p4c-bmv2 -h    --json to generate a JSON representation of the P4 program    --pd to generate the PD C++ code    --p4-v1.1 if your input program is a P4 v1.1 program

这些命令是用来编译P4程序的,目前仍然不清楚它们之间是什么关系。要逐渐理清楚。

在非默认路径上安装

如果你想安装在非默认的自己选择的路径上,需要这样做:

python setup.py build install --prefix 
[--single-version-externally-managed] --record install_files.txt cat install_files.txt | xargs rm -rf (if you need to uninstall later on)

2016/9/27

转载地址:http://sglml.baihongyu.com/

你可能感兴趣的文章
根据img的url 判断img的图片大小
查看>>
img 标签的 usemap 属性
查看>>
head设计模式 01
查看>>
Android网络开发之Volley--Volley基本用法StringRequest(一)
查看>>
[ POI 2011 ] Party
查看>>
广告等第三方应用嵌入到web页面方案 之 使用iframe嵌入
查看>>
win10下机器学习TensorFlow搭建
查看>>
CSS——对position定位和margin-top的理解
查看>>
Python+OpenCV图像处理(四)—— 色彩空间
查看>>
认知世界(1)--学与思
查看>>
八、Spring + SpringMVC + MyBatis整合详解
查看>>
程序员如何掌握计算机英语
查看>>
数据库系统的结构
查看>>
attack on titans(动态规划递推,限制条件,至少转至多方法,进击的巨人)
查看>>
Python面向对象-定制方法
查看>>
你为什不是富人? 富人不说穷人不懂
查看>>
FULLTEXT INDEX全文索引
查看>>
virsh创建和恢复快照
查看>>
3.61家庭作业与20135316合作
查看>>
策略模式-2.表单验证1
查看>>