[PLUG-TALK] Perl Question

Rich Shepard rshepard at appl-ecosys.com
Thu Mar 17 11:28:04 PDT 2011


On Thu, 17 Mar 2011, Daniel Hedlund wrote:

> The bin/ directory in the tarball contains a dbfdump.PL script.  It's very
> simple so you can probably just copy the file out of there and put it
> wherever you want.

Daniel,

   Much closer now ... but not yet there.

   Running dbfdump.PL seems to produce another executable called dbfdump.
When I run that I see:

[rshepard at salmo ~/grassdata]$ ./dbfdump --fs "|" towns.dbf > towns.csv
Can't locate XBase.pm in @INC (@INC contains:
/usr/lib/perl5/5.10.1/i486-linux-thread-multi /usr/lib/perl5/5.10.1
/usr/lib/perl5/site_perl/5.10.1/i486-linux-thread-multi
/usr/lib/perl5/site_perl/5.10.1 /usr/lib/perl5/site_perl
/usr/lib/perl5/vendor_perl/5.10.1/i486-linux-thread-multi
/usr/lib/perl5/vendor_perl/5.10.1 /usr/lib/perl5/vendor_perl .) at ./dbfdump
line 4.
BEGIN failed--compilation aborted at ./dbfdump line 4.

   The perl module is located in both
/usr/lib/perl5/site_perl/5.10.1/DBD-XBase-1.03/lib/DBD/XBase.pm
/usr/lib/perl5/site_perl/5.10.1/DBD-XBase-1.03/lib/XBase.pm

   How do I let dbfdump know the location of XBase.pm?

Many thanks,

Rich



More information about the PLUG-talk mailing list