I used STAF 3.4.26 installer for MacOS. Installed staf at default location by invoking installer with sudo. Now when I try to start STAF using startSTAFProc.sh then I am getting same error as that of OP.