[OSM-dev] [OT] installing CPAN modules

Dan Karran dan at karran.net
Thu Nov 9 11:07:12 GMT 2006

On 11/9/06, Richard Fairhurst <richard at systemed.net> wrote:

> > I'd like to listen closely into this too, as trying to install
> > XML::Parser (for fixcoastlines.pl) gave me similar errors about tests
> > failing and an inability to install.
> >
> > Any advice on installing Cpan modules on the Mac? (Not having used
> > cpan before, or at most very little)
> For XML::Parser you'll need to install Expat first. Expat will
> certainly install on OS X though a quick Google suggests some issues
> on an Intel machine.

Thanks Richard - I'll give that a go.

> (Personally I like planetosm-to-db's approach of using regexs and
> avoiding the need for installing an XML parser. :) )

That's presumably faster too...

> CPAN modules sometimes don't have their prerequisites defined too
> well. If you get a message about failing tests, try scrolling back up
> the history, see if it's looking for a module that isn't there,
> install that, and try again. (Even a well-known module like LWP
> suffers from this.)

I would have trawled through the thousands of lines of logging it spat
out, but it was late and there seemed to have been lots of things that
failed  :)


Dan Karran
dan at karran.net

More information about the dev mailing list