Restore gui dependencies and install XQuartz