[OSM-dev] [OT] installing CPAN modules on dev

Joerg Ostertag (OSM Munich/Germany) openstreetmap at ostertag.name
Thu Nov 9 13:48:29 GMT 2006

On Thursday 09 November 2006 10:45, Nick Whitelegg wrote:
> >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.)
> Sounds like dependency hell :-(
> >Bit::Vector, though, simply wouldn't pass one of the tests on my Mac
> >(OS 10.3) no matter what I tried. Eventually I did a force install and
> >it seems to be happy.
> OK I'll try that. But the planet-excerpt.osm script needs some other stuff
> like HTTP::Request too (why exactly, I'm not sure) so it may just be
> easier to ask Nick H to just do an apt-get after all....

For finding the needed Modules I tried the following:
tweety at moby:~/svn.openstreetmap.org$ grep "^use .*;" -rh utils/ | sed 's/ 
qw.*;/;/' | sort -u | grep -v -e 'Geo' -e ' Utils' -e constant
use Bit::Vector;
use Carp;
use Data::Dumper;
use Date::Manip;
use Date::Parse;
use DBI;
use File::Basename;
use File::Copy;
use File::Path;
use File::Slurp;
use GDBM_File;
use Getopt::Long;
use HTTP::Request;
use IO::File;
use IO::Socket::INET;
use LWP::Simple;
use LWP::UserAgent;
use Math::Trig;
use osm;
use OsmXML;
use PDF::API2;
use Pod::Usage;
use POSIX;
use Storable;
use Time::Local;
use Tk;
use Tk::Image;
use Tk::Label;
use Tk::Menu;
use Tk::Pane;
use WWW::Curl::easy;
use XML::Parser;
use XML::Simple;

More information about the dev mailing list