Generally, from a legal perspective, you don't need a neighbor's permission to install a fence within your own property lines. Don't assume you know where your property line falls! Get a professional ...
Fences in gardens can cause disputes but do you have to ask a neighbour for their permission before putting up a fence?