Giter Club home page Giter Club logo

Comments (13)

jafingerhut avatar jafingerhut commented on August 17, 2024

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.

jarenass001 avatar jarenass001 commented on August 17, 2024

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.

jafingerhut avatar jafingerhut commented on August 17, 2024

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.

jarenass001 avatar jarenass001 commented on August 17, 2024

Yes, I just created a vm, I've cloned the repository and I tried to run the script.

from p4-guide.

jafingerhut avatar jafingerhut commented on August 17, 2024

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.

jarenass001 avatar jarenass001 commented on August 17, 2024

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.

jafingerhut avatar jafingerhut commented on August 17, 2024

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.

jarenass001 avatar jarenass001 commented on August 17, 2024

Yes, I run source p4setup.bash and then ./runptf.sh and I get the same error.

from p4-guide.

jafingerhut avatar jafingerhut commented on August 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.