I am trying to build and install libYAML as per instructions on their website > http://pyyaml.org/wiki/LibYAML
- ./configure > successful
- make > successful
- make install > failed
I get the following error "cannot create directory '/usr/local/include': Permission denied." See below:
P.S. I am running as an administrator.
JetBlue@JetBlue-Laptop ~/yaml-0.1.4
$ make install
Making install in include
make[1]: Entering directory `/home/JetBlue/yaml-0.1.4/include'
make[2]: Entering directory `/home/JetBlue/yaml-0.1.4/include'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/include" || /usr/bin/mkdir -p "/usr/local/include"
/usr/bin/mkdir: cannot create directory `/usr/local/include': Permission denied
Makefile:235: recipe for target `install-nobase_includeHEADERS' failed
make[2]: *** [install-nobase_includeHEADERS] Error 1
make[2]: Leaving directory `/home/JetBlue/yaml-0.1.4/include'
Makefile:356: recipe for target `install-am' failed
make[1]: *** [install-am] Error 2
make[1]: Leaving directory `/home/JetBlue/yaml-0.1.4/include'
Makefile:343: recipe for target `install-recursive' failed
make: *** [install-recursive] Error 1
How does one resolve this "permission denied" error?
Thanks for your time.
Update -> Solution
It seems that to bypass this "permission denied" error, you not only need to be an administrator, but also the administrator who originally installed Cygwin. (They are the only ones who can freely edit files in Cygwin's /usr/local/ directory).
Hence my problem. Though I was an administrator I still didn't have edit rights to the directory.
So ... I am now just using that account to develop -_- (too much work at the moment to start playing around with sudos etc.)
P.S. I am not sure if this is what Yaakov was saying...