Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to run make #1203

Closed
MateusBragatto opened this issue Jul 8, 2023 · 6 comments
Closed

Trying to run make #1203

MateusBragatto opened this issue Jul 8, 2023 · 6 comments

Comments

@MateusBragatto
Copy link

Hi there. I'm trying to run make to compile and later to install again bmv2 on my machine and I'm having some issues:

I already did install the build dependencies for my Ubuntu 22.04 machine from step 2.
Then, I tried to install thrift and nanomsg by using sudo apt install libthrift-dev and sudo apt install libnanomsg-dev.

When I try to run sudo make I'm having this error:
error

Is there anything I'm doing wrong or that I'm missing?

@jafingerhut
Copy link
Contributor

I have never tried to build it the way that you show. There is an install_deps.sh script xthat installs particular versions of nanomsg and thrift that are known to work with behavioral-model.

@jafingerhut
Copy link
Contributor

And if you want scripts that install behavioral-model, p4c, and several other open source P4 development tools on Ubuntu 20.04 or 22.04 systems, you are welcome to try them: https://github.com/jafingerhut/p4-guide/blob/master/bin/README-install-troubleshooting.md

@MateusBragatto
Copy link
Author

I tried to download from both again from the recommendantion on step 2:
https://github.com/nanomsg/nanomsg/releases/tag/1.0.0
https://github.com/apache/thrift/releases/tag/0.11.0

Both I ran configure, make and make install. When I try to run make for bmv2 now I get this error:
image

After that I tried to run the install_deps.sh script, and I got this output:
image

So, after that, i tried again to run ./autogen and when I ran ./configure it said the Thrift headers were not found, even after it said the libthrift-0.9.2 was found.

Any other suggestions? I would like to use the same VM that i'm using.

@jafingerhut
Copy link
Contributor

I have given my best recommendations above already, and do not have any others. Other people may read this and have other suggestions for you, but if you are able to create a fresh VM/system with a supported OS of Ubuntu 20.04, 22.04, or Fedora 35, 36, 37, the scripts I linked above are tested working every month, and I fix them if they break.

Copy link

github-actions bot commented Jan 9, 2024

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or this will be closed in 180 days

Copy link

github-actions bot commented Jul 8, 2024

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment, or this will be closed in 180 days

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants