If complains about pcre.h then do

apt-get install libpcre3-dev

as root.