Intento instalar MacPorts y obtengo esto
$ sudo make install
make: getcwd: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
===> making install in doc
job-working-directory: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
chdir: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
make: getcwd: Permission denied
/usr/bin/install -c -d -o root -g admin -m 0755 "/opt/local"
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
install: mkdir /opt: Permission denied
make[1]: *** [install] Error 71
make: *** [install] Error 1
Tampoco puedo
$ sudo mkdir /opt
mkdir: /opt: Permission denied
Puedo crear el directorio con
open /
y luego con Finder.
También puedo instalar MacPorts con el instalador .pgk, pero luego:
sudo port install htop
Error: Insufficient privileges to write to MacPorts install prefix.