I ran "brew upgrade" from the terminal, before upgrading finished the battery ran out on my MBP and the computer restarted. Now when I go to open a terminal the terminal window flashes up for a split second before closing. I managed to capture the terminal output before it closed:
dyld: Library not loaded: /use/local/lib/libgdbm.4.dylib
How can I fix this?
Please note that I cannot open a terminal to issue any commands!