Ubuntu 16.04 installed P4 a key development environment record

Written before most

P4 development environment can be used to install Chen Xiang students of a key installation script : p4Installer
P4C-bm is P4-14 compiler, p4c is now mainstream P4-16 compiler, bmv2 support P4 running software switch

System Environment

Before installation, pre-installed java and a good mininet

p4c-bm installation:

The first time you run stuck, network problems, ctrl c over again

ok

bmv2 installation



The rear tips: ReadTimeoutError: HTTPSConnectionPool (host = ' files.pythonhosted.org', port = 443): Read timed out.
It should be timeout problems continue ctrl c over again

ok

p4c installation

To install a series of front-dependent
protobuf installation is very slow

boost is also very slow

and finally failed

Continued the next day
when reinstalling encounter this prompt

After modifying the script to re-run

newspaper some mistakes


Above be installed over. Running an official tutorial to try
content in p4 of the tutorials on github git locally, follow the prompts to make running even being given

Later git recommend other branches, the old version sh script runs directly, rather than make.
I have downloaded the virtual machine image p4 development environment official website, it really is the latest official prepared their equipment is not very friendly.
Download re-commissioning, or the error. . . . . .

The code turned out to be too long, compilers have been upgraded, it seems a need to change the code
in changed inout

mark_to_drop();改成mark_to_drop(standard_metadata);

ok,

Guess you like

Origin www.cnblogs.com/fjlinww/p/11653084.html