Rub21 / osm_visualization

12 stars 2 forks source link

XML/Parser.pm problem #1

Open Rub21 opened 10 years ago

Rub21 commented 10 years ago
    ruben@rub21:~/apps/osm_visualization/data$ ./get-edits 489.osc.gz 37.716045 -122.51781 37.817006 -122.34924 > sf489.geojson
    Can't locate XML/Parser.pm in @INC (you may need to install the XML::Parser module) (@INC contains: /etc/perl /usr/local/lib/perl/5.18.2 /usr/local/share/perl/5.18.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.18 /usr/share/perl/5.18 /usr/local/lib/site_perl .) at ./get-edits line 4.
    BEGIN failed--compilation aborted at ./get-edits line 4.
Rub21 commented 10 years ago

Solution

    ruben@rub21:~/apps/osm_visualization/data$ sudo su
root@rub21:/home/ruben/apps/osm_visualization/data# cd /
root@rub21:/# perl -e shell -MCPAN
cpan[1]> install XML::Parser
root@rub21:/# exit
ruben@rub21:~/apps/osm_visualization/data$ ./get-edits 489.osc.gz 37.716045 -122.51781 37.817006 -122.34924 > sf489.geojson

Fuente:

  1. change to root su -
  2. bring up CPAN tool perl -e shell -MCPAN
  3. install module install XML::Parser

enjoy

http://www.linuxquestions.org/questions/programming-9/can%27t-locate-xml-parser-pm-577422/#post2860513