One can give the cross product as a Lie bracket on $\mathbb{R}^3$ and the matrix commutator to $\mathbb{R}^{n^2}$ ($n \ge 2$). They both give a perfect Lie algebra structure.
However, every Lie algebra of dimension $1$ is abelian, and for $2$-dim we can write any nontrivial Lie bracket as $[x, y]=x$ (if $\{x, y\}$ is a basis) but this Lie algebra is not perfect.
So I'm wondering which vector spaces have a perfect Lie algebra structure. Does every $\mathbb{R}^n$ ($n \ge 3$) have a Lie bracket which makes it into a perfect Lie algebra?