I have the following makefile:
CC = /usr/bin
CPPFLAGS = -x c++
...
When I build my project with this makefile I get:
make: execvp: /usr/bin/: Permission denied
There is a way to specify root permission in the makefile ? Or other solution ?
Are you trying to run /usr/bin
? CC
is usually set to a C compiler, not a directory.
Either comment out the CC line or set it to be the full path to the C compiler.
The shell command which cc
will give you a path to the C compiler
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.