make: *** [install-recursive] Error 1
omeshF opened this issue · 2 comments
Hi @antoninbas and other seniors
I get the following error when installing p4ofagent. I have installed bmv2 with pdfixed and p4c-bm.
Making install in inc
make[1]: Entering directory /home/omesh9/p4factory/submodules/p4ofagent/inc' make[2]: Entering directory
/home/omesh9/p4factory/submodules/p4ofagent/inc'
make[2]: Nothing to be done for install-exec-am'. /bin/mkdir -p '/usr/local/include' /bin/mkdir -p '/usr/local/include/indigo' /bin/mkdir: cannot create directory ‘/usr/local/include/indigo’: Permission denied /usr/bin/install -c -m 644 indigo/indigo.h indigo/error.h indigo/fi.h indigo/types.h indigo/port_manager.h indigo/memory.h indigo/time.h indigo/assert.h indigo/of_state_manager.h indigo/of_connection_manager.h indigo/forwarding.h '/usr/local/include/indigo' /usr/bin/install: target ‘/usr/local/include/indigo’ is not a directory make[2]: *** [install-nobase_includeHEADERS] Error 1 make[2]: Leaving directory
/home/omesh9/p4factory/submodules/p4ofagent/inc'
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/omesh9/p4factory/submodules/p4ofagent/inc'
make: *** [install-recursive] Error 1
Any help would greatly appreciated.
Thank you
/bin/mkdir -p '/usr/local/include/indigo'
/bin/mkdir: cannot create directory ‘/usr/local/include/indigo’: Permission denied
you need to make sure your user is either root or has sufficient privileges to create a directory inside /usr/local/include
Might be you have not add path or edit the path after sudo bash i.e sudo nano ~/.bashrc