There is no chiral anomaly/gauge anomaly if the spacetime dimension $2\ell+1$ is odd, partly because $SO(2\ell+1)$ has real or pseudo-real representations, but no complex representations.
There may instead be parity anomalies in odd spacetime dimensions. In fact, there is a dimensional ladder of related anomalies
$$\text{Abelian chiral anomaly in}~ 2\ell+2~ \text{dimensions}$$
$$ \downarrow$$
$$\text{Parity anomaly in}~ 2\ell+1~ \text{dimensions}$$
$$ \downarrow$$
$$\text{Non-Abelian anomaly in}~ 2\ell~ \text{dimensions}.$$
See e.g. M. Nakahara, Geometry, Topology and Physics, Section 13.6.