Scurvy was at one time common among sailors , pirates and others aboard ships at sea longer than perishable fruits and vegetables could be stored (subsisting instead only on cured and salted meats and dried grains ) and by soldiers similarly deprived of these foods for extended periods.