Unhappy at work: what to do?

When you are unhappy at work, we often hear that the cure is to look for a new one, but, given the objective difficulties, it is not always possible.