Open chrispsommers opened 1 year ago
Looks like you missed the step to set the PATH variable export PATH=/git/ipdk/build:$PATH before running the ipdk build. Once if you set the PATH you will not see ipdk command error.
./ipdk install ebpf-ubuntu2004 /git/ipdk/build/scripts/ipdk_default.env: line 31: git: command not found Loaded /git/ipdk/build/scripts/ipdk_default.env Loaded /home/vagrant/.ipdk/ipdk.env User changable IPDK configuration file is already defined at '~/.ipdk/ipdk.env'. Changed runtime environment to: ebpf-ubuntu2004
As last step execute: export PATH=/git/ipdk/build:$PATH to add the IPDK CLI to your path in the running environment! vagrant@bullseye:/git/ipdk/build$
No issues observed till docker container image creation. But, unable to run the demo "make start-demo" due to missing the folder “go” under /home/vagrant Somehow go folder is getting created under /root/ instead of /home/vagrant Needs further debugging.
Looks like you missed the step to set the PATH variable export PATH=/git/ipdk/build:$PATH before running the ipdk build. Once if you set the PATH you will not see ipdk command error.
./ipdk install ebpf-ubuntu2004 /git/ipdk/build/scripts/ipdk_default.env: line 31: git: command not found Loaded /git/ipdk/build/scripts/ipdk_default.env Loaded /home/vagrant/.ipdk/ipdk.env User changable IPDK configuration file is already defined at '~/.ipdk/ipdk.env'. Changed runtime environment to: ebpf-ubuntu2004
As last step execute: export PATH=/git/ipdk/build:$PATH to add the IPDK CLI to your path in the running environment! vagrant@bullseye:/git/ipdk/build$
Thanks, I confirmed that setting the PATH solved the docker image build issue. Can't this PATH export be done automatically by the build scripts? Why add a manual step?
Can't this PATH export be done automatically by the build scripts? Why add a manual step?
Unfortunately not... Because the script is running in its own shell environment exporting a extended path will be gone when the script ends. 😢
Starting a new bash shell or logging in again should do the work also...
Following the networking_ebpf instructions at https://github.com/ipdk-io/ipdk/blob/main/build/networking_ebpf/README_DOCKER.md#optional-vagrant-setup yielded the error shown below. SHould the instructions also include this step?
Here is the error: