Steve, thank you for your hint. As you assumed the dev package was missing in fact. After installing it using the packet manager the libgd.so resides in /usr/lib so I can now carry on with compiling and installing mapserver on my machine. Many thanks, Chris