MacOS – Mountain Lion: Problem With Permissions

macospermission

I recently tried compiling Textmate 2 now that it's open sourced. Followed all the directions hereand downloaded all the dependencies. Now, when I tried to build (using ./configure && ninja) I received the following error:

make: *** [/Users/~/build/TextMate/Frameworks/SoftwareUpdate/fixtures/secret.pem] Error 1

[6/1169] Copy ‘"Frameworks/OakFoundation/src/NSString Additions.h"’…ninja: ERROR: mkdir(/Users/~/build/TextMate/include/OakFoundation): Permission denied

ninja: build stopped: .

Now, I figured that maybe Mountain Lion messed with permissions, so I gave it the ol' sudo try. I still receive a similar error –

rm /Users/jlvillalobos/build/TextMate/Frameworks/SoftwareUpdate/fixtures/secret.pem
[7/1169] Compile ‘Frameworks/scope/src/match.cc’…ninja: ERROR: mkdir(/Users/jlvillalobos/build/TextMate/Frameworks/scope): Permission denied

Now, I'm pretty stuck. I tried just checking my bash profile and I get a permission denied error on that too! I've ran "repair permissions" in disk utility for posterity and getting the same error. Anyone run into similar issues?

Best Answer

Looking at the first error message from make it seems as if the paths got configured wrongly by configure. So just rerun it and make sure to specify any required paths in full (without ~).