Re: Many "permission denied" errors.
Well, my /private/tmp is open to read/write, but /private itself is not. Worse, it's one of those directories which ignores sudo and doesn't allow changes. I'll have to teach myself how to fix that (something about logging on in a special mode IIRC). On Mon, Apr 22, 2024 at 5:47 PM Ryan Schmidt wrote: > On Apr 22, 2024, at 10:14, Carl Witthoft wrote: > > > sudo port -f activate xorg-xorgproto > error message is > > Warning: Failed to execute portfile from registry for xorg-xorgproto > @2024.1_0 > > ---> Activating xorg-xorgproto @2024.1_0 > > Error: port activate failed: mkdtemp failed: Permission denied > > > You should almost never force port activation so let's drop the -f flag. > > Can you try again with debug mode -- the -d flag? Maybe that will tell us > more. > > I recall two or three users reporting difficulties years ago that ended up > being caused by incorrect permissions on /tmp or /private/tmp so you might > check those. >
Re: Many "permission denied" errors.
On Apr 22, 2024, at 10:14, Carl Witthoft wrote: > > sudo port -f activate xorg-xorgproto > error message is > Warning: Failed to execute portfile from registry for xorg-xorgproto @2024.1_0 > ---> Activating xorg-xorgproto @2024.1_0 > Error: port activate failed: mkdtemp failed: Permission denied You should almost never force port activation so let's drop the -f flag. Can you try again with debug mode -- the -d flag? Maybe that will tell us more. I recall two or three users reporting difficulties years ago that ended up being caused by incorrect permissions on /tmp or /private/tmp so you might check those.
Many "permission denied" errors.
Hi, I haven't used MacPorts for a few years, and am trying to get it running under MacOS Ventura. I do have the latest XCode, etc. . I installed from MacPorts-2.9.3-13-Ventura.pkg . The problem is that, running from the command line, I have run into at least 10 different error messages all of which complain about permission denied when trying to write to one directory or another. I've taken the approach of changing /opt/local/[lots of directories] permissions to "read and write" for everyone, but am unable to track down all necessary locations. Since I don't think I should have had to change any permissions in the first place -- and yes I'm using sudo for nearly all 'port' commands -- what is going wrong? example: sudo port -f activate xorg-xorgproto error message is Warning: Failed to execute portfile from registry for xorg-xorgproto @2024.1_0 ---> Activating xorg-xorgproto @2024.1_0 Error: port activate failed: mkdtemp failed: Permission denied This means I cannot complete 'port upgrade outdated' , for example. thanks Carl