So I finally made the mistake which happens when your playing around with sudo and manually deleting development libraries, I manged to delete the entire contents of /usr/lib
Luckily a co-worker was running the same system and I had a couple of terminals open so I was able to restore the key libs for me to restore basic functionality. Now I have the problem of fixing the packages which are broken, without knowing what are broken.
Does anyone know of a nice simple way to get everything reinstalled?
