It means:
* To become weak or feeble
* To lose strength or vigor
* To suffer from neglect or lack of attention
* To waste away
* To long for something that is absent or unattainable
Here are some examples:
* The plants languished without water.
* He languished in prison for years.
* She languished for a taste of home.