Skip to content
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.

make: *** [install-recursive] Error 1 #27

Open
omeshF opened this issue Aug 7, 2017 · 2 comments
Open

make: *** [install-recursive] Error 1 #27

omeshF opened this issue Aug 7, 2017 · 2 comments

Comments

@omeshF
Copy link

omeshF commented Aug 7, 2017

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

@aaglenn
Copy link

aaglenn commented Dec 16, 2017

/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

@atiquebarudgar
Copy link

Might be you have not add path or edit the path after sudo bash i.e sudo nano ~/.bashrc

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants