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?
drwxr-xr-x 2 root root 4096 Oct 2 11:24 sane
Also, I closed that terminal window and opened a new one, then ran the same commandsudo ./configure && make && make install
and still got the same "Permission denied" error.sudo ./configure && make && make install
means that onlyconfigure
is run withsudo
. The other two commands aren't../configure
andmake
should never have to be run withsudo
. Onlymake install
should needsudo
.