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

Revolutionizing Air Quality Monitoring: How I Upgraded Our System with Mila Integration for Smart Home Automation

In this blog post , I explained how I set up an air quality monitoring system for our neighborhood. With this setup, we can keep an eye on t...