I am trying to create an *nix executable from a Perl script that uses a CPAN module named Text::BibTeX.
I have been trying to use pp, to pack everything, with no success.
I have tried
pp -o outfile src.pl
pp -M Text::BibTeX -o outfile src.pl
But it's not working. Or better the executable works on my machine, but not on two other machines I have access to. On one of those machines Text::BibTeX is also installed on the other only perl.
Can somebody help?
Some more details about the script.
It's a preprocessor for bib files in order to create CSV files from certain fields of the bib.
Normal usage is:
perl Bib2CSV.pl file.bib
When I run pp -x Bib2CSV.pl file.bib
it complains about missing input file:
ForkBook:plbib2csv (master) fork$ pp -x Bib2CSV.pl bibliography.bib
Missing input file.
SYSTEM ERROR in executing Bib2CSV.pl: 512 at /Library/Perl/5.10.0/Module/ScanDeps.pm line 1255.
The source ccode is available at https://github.com/TiagoVeloso/Bib2CSV
It also has a Java Port that I am also working on.
Try using
$ARGV[0]
instead ofshift
to pick up the command line argument