[OSM-talk] OSM > Shapefile and MySQL linkage, help.

Richard Fairhurst richard at systemeD.net
Mon Feb 19 20:28:57 GMT 2007


GodSmurf wrote:

> [planetosm-to-db.pl]
> Thanks for the input there.
> Tried running the perl script but it keeps erroring out saying  
> about @INC's.
> I've copied stuff from the perl utils page but it still keeps  
> erroring out.

You'll need to download a handful of Perl modules, both those  
specific to this script and some more general modules.

For the former, make sure you've got all the files in sub-directories  
of /utils/planet.osm/perl/ , and that the directory structure is  
preserved.

For the latter, you'll need to install DBI (I'd guess you'd have this  
already), Getopt::Long, Pod::Usage, and Bit::Vector, all of which are  
available from CPAN. On OS X I'd do 'sudo -mcpan -e shell' followed  
by 'install Getopt::Long', then 'Pod::Usage', etc. It'll almost  
certainly be different on Windows, but the (ActiveState?) Perl docs  
should explain that to you.

cheers
Richard




More information about the talk mailing list