码迷,mamicode.com
首页 > 其他好文 > 详细

How To Install P4 Tutorials

时间:2019-11-21 11:44:17      阅读:64      评论:0      收藏:0      [点我收藏+]

标签:bre   lvm   tutorial   lex   ons   pytho   add   imp   libpcap   

截止2019.11.21可用

  • 安装一些依赖
sudo apt-get update

sudo apt-get install python-pip
sudo apt-get install automake cmake libjudy-dev libpcap-dev libboost-dev libboost-test-dev libboost-program-options-dev libboost-system-dev libboost-filesystem-dev libboost-thread-dev libevent-dev libtool flex bison pkg-config g++ libssl-dev  -y

sudo apt-get install cmake g++ git automake libtool libgc-dev bison flex libfl-dev libgmp-dev libboost-dev libboost-iostreams-dev libboost-graph-dev llvm pkg-config python python-scapy python-ipaddr python-ply tcpdump curl  -y

sudo apt-get install libreadline6 libreadline6-dev  python-pip  -y 

sudo pip install https://pypi.tuna.tsinghua.edu.cn/simple psutil
sudo pip install https://pypi.tuna.tsinghua.edu.cn/simple crcmod
  • clone相关脚本
git clone https://github.com/Multhree/p4tutorials.git
  • 安装P4(这一步可能用时较久)
cd ~/p4tutorials
./p4.sh
  • 下载tutorials
sudo mv tutorials.sh ~
cd ..
./tutorials.sh
  • 重启
sudo reboot

How To Install P4 Tutorials

标签:bre   lvm   tutorial   lex   ons   pytho   add   imp   libpcap   

原文地址:https://www.cnblogs.com/multhree/p/11904217.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!