P4-vSwitch / vagrant

PISCES Simulation Environment
30 stars 15 forks source link

vagrant up error #13

Open daniel0720 opened 5 years ago

daniel0720 commented 5 years ago

There is an error when i run "vagrant up" command. `switch: In file included from lib/odp-execute.h:24:0,

switch:                  from lib/odp-execute.c:19:
switch: ./include/openvswitch/types.h:24:44: fatal error: p4/src/match/openvswitch/types.h: No such file or directory
switch:  #include "p4/src/match/openvswitch/types.h"
switch:                                             ^
switch: compilation terminated.
switch: In file included from lib/util.h:31:0,
switch:                  from lib/bitmap.h:22,
switch:                  from lib/flow.h:24,
switch:                  from lib/odp-util.h:24,
switch:                  from lib/odp-util.c:19:
switch: ./include/openvswitch/types.h:24:44: fatal error: p4/src/match/openvswitch/types.h: No such file or directory
switch:  #include "p4/src/match/openvswitch/types.h"
switch:                                             ^
switch: compilation terminated.
switch: make[2]: 
switch: *** [lib/odp-execute.lo] Error 1
switch: make[2]: 
switch: *** Waiting for unfinished jobs....
switch: make[2]: 
switch: *** [lib/odp-util.lo] Error 1
switch: make[2]: Leaving directory `/home/vagrant/ovs'
switch: make[1]: 
switch: *** [all-recursive] Error 1
switch: make[1]: Leaving directory `/home/vagrant/ovs'
switch: make: 
switch: *** [all] Error 2
switch: sudo: ./ovsdb-tool: command not found

The SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed. The output for this command should be in the log above. Please read the output to determine what went wrong. ` anyone can help me to solve this problem? I am using CentOS 7.4. Thank you!

daniel0720 commented 5 years ago

We haven't tested with CentOS 7.4. Please use the provided vagrant box, listed in the README.

My OS is CentOS 7.4, and in this OS I installed vagrant, virtualbox, then i downloaded the vagrant box ubuntu-trusty64.box . in the README, there is no No operating system specified. Thank you.

daniel0720 commented 5 years ago

@mshahbaz You mean I should use Ubuntu 16.04 operating system? Then install vagrant and virtualbox?

christnp commented 1 year ago

I realize this is several years old, but I am receiving the same error. I am running Ubuntu 14.04.4 LTS (via the provided VBOX). Is the solution to use Ubuntu 16.04? (I'm only seeing responses from daniel0720).

Edit: To clarify, I'm running Ubuntu 20.04.5 LTS (host) and Ubuntu 140.04.4 LTS on my VMs.

lohithreddyk commented 1 year ago

add sudo apt-get install python-ply to the setup-switch.sh file