Trying to run make
MateusBragatto opened this issue · 6 comments
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:
Is there anything I'm doing wrong or that I'm missing?
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.
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
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:
After that I tried to run the install_deps.sh script, and I got this output:
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.
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.
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
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