Tuesday, September 19, 2006

Installing XML::Parser on Mac OS X


I was having a problem installing the XML::Parser perl module on Mac OS X.  The problem is because fink installs the expat library in /sw/lib, where the configuration script is not expecting it.  Also, if the configure script doesn't find it, the user is not promted for the correct location.


This page describes the fix.



# perl -MCPAN -e'look XML::Parser'
# perl Makefile.PL EXPATLIBPATH=/sw/lib EXPATINCPATH=/sw/include
# make; make test; make install
# exit


The first command downloads and expands the package and opens a shell in the expanded directory.


Technorati Tags: , , ,

No comments:

Post a Comment

Mastering Matter: Seamless Smart Home Integration with Network Segmentation

I’ve been intrigued by the idea of integrating devices with Matter for some time. My smart home setup includes a pair of SwitchBot Hubs, som...