Ubuntu 10.10 に XML::LibXMLをインストールする
一身上の都合でMacが使えなくなったのでUbuntuが入ったラップトップを引っ張り出してきたついでに、10.10をインストールして XML::LibXMLをインストールしようとしたらlibxml2が見つからないと怒られた。
hide@localhost:~$ perl Makefile.PL enable native perl UTF8 running xml2-config...untested Note: libxml2 2.7.7 was not tested with this XML::LibXML version. looking for -lxml2... no looking for -llibxml2... no libxml2 not found Try setting LIBS and INC values on the command line Or get libxml2 from http://xmlsoft.org/ If you install via RPMs, make sure you also install the -devel RPMs, as this is where the headers (.h files) are. Also, you may try to run perl Makefile.PL with the DEBUG=1 parameter to see the exact reason why the detection of libxml2 installation failed or why Makefile.PL was not able to compile a test program.
apt-get install libxml2-devしたけど見つからず。
http://www.simplicidade.org/notes/archives/2007/04/tip_xmllibxml_a.html
をみて
apt-get install zlib1g zlib1g-dev
したら通った。