I'm installing Sane (scanner software) and the make install script is attempting to create directories and move files to a new subdirectory in /usr/local/include
but I keep getting a "Permission denied" error. I attempted running the make script even with sudo and it still gives me this error.
/bin/mkdir -p '/usr/local/include/sane'
/bin/mkdir: cannot create directory ‘/usr/local/include/sane’: Permission denied
I don't think it's a problem with sudo exactly, because I was able to sudo mkdir /usr/local/include/sane
manually in a different terminal window, only when I attempted to run the make script again it now gets stuck on the next line, which is attempting to access files in this directory.
/usr/bin/install -c -m 644 sane/sane.h sane/saneopts.h '/usr/local/include/sane'
/usr/bin/install: cannot create regular file '/usr/local/include/sane/sane.h': Permission denied
/usr/bin/install: cannot create regular file '/usr/local/include/sane/saneopts.h': Permission denied
Is there some problem with sudo running make scripts? I was under the impression that sudo was the highest level access for Linux shell, but is there any higher access command I can use?