I have problems compiling Zebra, what should I do?

We have noticed that compiling Zebra so that the Perl libraries get compiled correctly is quite tricky business. However, David experimented on this and found an order in which things should be done to achieve a sane system. Below is the findings of this mail. In case You are experiencing problems compiling Zebra correctly, it is adviseable to follow these steps.

First, I needed these package on my Debian system before it would build properly:
automake1.4, tcl8.3-dev, libncurses5-dev, libexpat1-dev, libyaz-dev (>= 2.0.2), libssl-dev, libbz2-dev, autoconf2.13, libperl-dev
Also, I found it is very important to do things in order:
1.  ./configure
2. make
3. cd perl
4. perl Makefile.PL
5. make
6. cd ..
7. make install
8. cd perl
9. make install