Download caffe
git clone https://github.com/BVLC/caffe.git
Copy the L2 normalize source files (credit: happynear) into caffe source code. Specifically, put the header file (normalize_layer.hpp) to include/caffe/layers
and the main files (normalize_layer.cpp and normalize_layer.cu) into src/caffe/layers
Install caffe as normal.