Maybe you are not close to fresh water (a lake or a river).
Civil service allows to build farms in squares that are not close to fresh waters, but using other farms nearby instead.
So, if you have not fresh water but another farm in an adiacent square, civil service allows you to build farms.