Permission denied writing temp file during restore_ports.tcl on macOS sierra

Kendall Shaw at
Thu Apr 20 16:30:06 UTC 2017

Building gmp fails because it can’t write to a directory that it creates in /var/folders/xx/_blah/T:

:info:build make: error: couldn't create cache file '/var/folders/sr/_cb62lmn0v36cvbz11hjgy7r0000gn/T/xcrun_db-eQZtJHV5' (errno=Permission denied)

Changing permissions using chmod -R g+w  /var/folders/sr/_cb62lmn0v36cvbz11hjgy7r0000gn doesn’t change, it still creates a directory and then says it can’t write to it. And I’ve tried a few variations of this changing group and ownership

Do you know what needs to be done?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list