MacにXML::Parserを入れようとすると、エラーが起きました。
どうやらexpat.hが無いのが原因のようです。
(CPANでも駄目でした)
$ cd XML-Parser-2.34 $ perl Makefile.PL EXPATLIBPATH=/usr/loca/lib EXPATINCPATH=/usr/local/include Note (probably harmless): No library found for -lexpat Expat must be installed prior to building XML::Parser and I can't find it in the standard library directories. You can download expat from:
確かに入れてないわ
Expatをインストールします。
wget http://superb-east.dl.sourceforge.net/sourceforge/expat/expat-2.0.0.tar.gz tar xzvf expat-2.0.0.tar.gz cd expat-2.0.0 ./configure make sudo make install
もう一度挑戦
$ cd XML-Parser-2.34 $ perl Makefile.PL EXPATLIBPATH=/usr/loca/lib EXPATINCPATH=/usr/local/include $ make $ sudo make install
おっけい