Get a source tarball for libxml2-dev. On `apt` systems:
apt-get source libxml2-dev
Configure it to install locally, and then install it:
cd libxml2-dev/
./configure --prefix=/home/peters/perl5/alien/
make
make install
Ignoring all other options like LIBS, INC, and the rest of the stuff that's kindly recommended, you only care about showing Makefile.PL where to find xml2config:
perl Makefile.PL XMLPREFIX=~/perl5/alien/
And then it should cleanly make.
…
Want to install Net::SSLeay on a Debian or Ubuntu system that you don't have root on, and doesn't have `libssl-dev` installed? Let me see if I can save you some time...
You are going to need to keep a compiled version of libssl around, and so you need to decide where that will live: I went for: `~/perl5/alien`...
mkdir ~/perl5/alien-src
mkdir ~/perl5/alien
cd ~/perl5/alien-src
apt-get source lib64z1-dev # Or the 32 bit version
apt-get source libssl-dev
cd zlib-1.2.3.4.dfsg/ # Or whatever it is
./configure --prefix=~/perl5/alien
/users/peter_sergeant/2014/09/index.html