Issue installing MacPorts on Mavericks I try to install MacPorts and get this

$ sudo make install
make: getcwd: Permission denied
shell-init: error retrieving current directory: getcwd: cannot access parent directories: Permission denied
===&gt; 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


I am also not able to 

$ sudo mkdir /opt
mkdir: /opt: Permission denied


I can create the directory with 

open /


and then with Finder.

I am also able to install MacPorts with the installer .pgk, but then:

sudo port install htop
Error: Insufficient privileges to write to MacPorts install prefix.
Well, try the following:
Reboot into single user mode, this is archieved by holding down alt(option) + s while rebooting.
At the prompt /sbin/fsck -fy(careful, QWERTZ-Layout), after that type /sbin/mount -wu. Now /bin/chmod 1775 /. At last /bin/sync,then exit.  

This will check your filesystem integrity and correct permissions for your root directory.