Comments (13)
Which install script did you use?
If you used install-p4dev-v7.sh, it creates a file p4setup.bash
that you must do source p4setup.bash
first, in every shell that you want to use the P4 development tools, or else it will often have problems finding the Python packages that were installed by the install script.
from p4-guide.
I had another problem when I used install-p4dev-v7.sh
, I got the next error:
Found supported ID ubuntu and VERSION_ID 22.04 in /etc/os-release
Minimum recommended memory to run this script: 1920 MBytes
Memory on this system from /proc/meminfo: 3907 MBytes -> enough
Minimum free disk space to run this script: 25600 MBytes
Free disk space on this system from df output: 53299 MBytes -> enough
NO directory containing patches: /home/p4/p4-guide/bin/install-p4dev-v7.sh/patches
Aborting script because an expected directory does not exist (see above).
This script is not designed to work if you only copy the
script file to a system. You should run it in the context
of a cloned copy of the repository: https://github/jafingerhut/p4-guide
And I have all the patches in /home/p4/p4-guide/bin/patches
, the same as the github repository path, which I think is the correct path.
from p4-guide.
I have never seen this error before. Are you certain that you have made no changes to your copy of the install-p4dev-v7.sh script on your system?
from p4-guide.
Yes, I just created a vm, I've cloned the repository and I tried to run the script.
from p4-guide.
What is the output you see from this command on this system where you saw the error? /bin/bash --version
After cloning the repo, you ran exactly this command? Or perhaps some variant with the output piped to a tee
command?
./p4-guide/bin/install-p4dev-v7.sh
from p4-guide.
Finally I could install it correctly with ./p4-guide/bin/install-p4dev-v7.sh
, but I got the same error as the first comment when I run ./runptf.sh
.
And the output from /bin/bash --version
is:
GNU bash, versión 5.1.16(1)-release (x86_64-pc-linux-gnu)
from p4-guide.
At the end of running install-p4dev-v7.sh
, it creates a file p4setup.bash
.
You need to run source p4setup.bash
in any shell window where you want to use the open source P4 development tools. You can do that manually if you wish, or you can add a line source p4setup.bash
to a file like $HOME/.bashrc
, if you use bash as your command shell.
Do you get different results if you try that?
from p4-guide.
Yes, I run source p4setup.bash
and then ./runptf.sh
and I get the same error.
from p4-guide.
When you ran install-p4dev-v7.sh
, did you save its output to a file? If so, feel free to email it to me at [email protected], and I can compare it against the most recent run I did on an Ubuntu 22.04 system and see if I notice anything significantly different between my run and yours.
If you did not save the output to a file, then I don't have a very good way to help you further, other than to suggest you start from a freshly installed Ubuntu 20.04 or 22.04 system and try running the install script in a way where you do save the output to a file, e.g. as shown here: https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md#quick-instructions-for-successful-install-script-run
from p4-guide.
Related Issues (20)
- make run error creating error interface HOT 2
- ImportError cannot import name 'cygrpc' when running runptf.sh in demo1 HOT 3
- Can not complied with the optimization flags
- py3localpath.py prints incomplete output HOT 4
- how can i solve this problem HOT 3
- how can i solve this problem? HOT 4
- After I run the install script,I can't cd p4c/build and make HOT 4
- [Question]A question about lpm HOT 2
- Error running rundemo.sh & rundemo_TAP_IO.sh for IPDK_Native HOT 5
- What are the differences between the P4-DPDK Target and BMv2? HOT 2
- Is it possible to create two p4-DPDK-targets at the same time in the Docker? HOT 3
- Hunk failed while installing HOT 2
- how can i solve this problem HOT 2
- V7 Install script fails. Thrift headers not found HOT 5
- Is it able to disable the functionality to write the switch logging into a file? HOT 7
- buffer usage measurement in PSA HOT 1
- Test whether these operations work in P4 DPDK HOT 1
- [Question] Build error (potentially) due to version format in version file and Makefile processing HOT 6
- Add note in README-install ... docs that install scripts should be run on VM-local file system, not in directory shared with host OS HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from p4-guide.