p4lang / tutorials

P4 language tutorials
Apache License 2.0
1.35k stars 887 forks source link

Is there any p4lang environment for macbook m2? #571

Closed ROBINRUGAN closed 7 months ago

ROBINRUGAN commented 7 months ago

I found that on the MacBook with M1 and M2 chip series, it's impossible to install VirtualBox and its images, which seems to be specifically prepared for x86 users. However, this poses a significant challenge for learners on arm64. @antoninbas @jafingerhut

jafingerhut commented 7 months ago

Note that as far as I know, VirtualBox is not supported on arm64-based Macs. I am happy to learn differently if someone knows otherwise. If it is not supported, then we would need to use some other virtualization software, perhaps with vagrant or something else. If you know what works, please share.

I have successfully installed the open source P4 development tools on an arm64-based Mac using these steps:

After that succeeded, I was able to follow the instructions in this tutorials repo to run the exercises.

ROBINRUGAN commented 7 months ago

thank you so much! I will try it now. If there exists some problems I will contact with you~

ROBINRUGAN commented 7 months ago

I successfully installed them, and everything went well. Thank you again for your timely guidance.