pico2png icon indicating copy to clipboard operation
pico2png copied to clipboard

bash doesn't recognize #!perl and missing imager module

Open josefnpat opened this issue 8 years ago • 3 comments

Howdy, just started using pico8, and i'm looking to do some more hacking!

I'm running arch linux, and when I run it as a standalone script, it fails:

pico2png♠ ./pico2png.pl 
-bash: ./pico2png.pl: perl: bad interpreter: No such file or directory

but it does run "more" with perl:

pico2png♠ perl pico2png.pl 
Can't locate Imager.pm in @INC (you may need to install the Imager module) (@INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at pico2png.pl line 4.
BEGIN failed--compilation aborted at pico2png.pl line 4.

What dependencies are there exactly?

josefnpat avatar Oct 10 '15 08:10 josefnpat

Hi,

For the first issue, you have to change the hashbang line from #!perl to #!/usr/bin/perl (or wherever your perl interpreter is installed)

For the second one, only the Imager module is needed. You can install it with : $ sudo cpan Imager

Or check if your distro package manager provides it!

Tell me if you need more help to r n this script.

Briac Le 10 oct. 2015 10:08, "Seppi" [email protected] a écrit :

Howdy, just started using pico8, and i'm looking to do some more hacking!

I'm running arch linux, and when I run it as a standalone script, it fails:

pico2png♠ ./pico2png.pl -bash: ./pico2png.pl: perl: bad interpreter: No such file or directory

but it does run "more" with perl:

pico2png♠ perl pico2png.pl

Can't locate Imager.pm in @INC https://github.com/INC (you may need to install the Imager module) (@INC https://github.com/INC contains: /usr/lib/perl5/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/core_perl /usr/share/perl5/core_perl .) at pico2png.pl line 4. BEGIN failed--compilation aborted at pico2png.pl line 4.

What dependencies are there exactly?

— Reply to this email directly or view it on GitHub https://github.com/briacp/pico2png/issues/1.

briacp avatar Oct 10 '15 10:10 briacp

Thanks, looks like I needed a few more deps.

Might be worth noting in the readme!

 sudo cpan Imager File::Slurp Slurp

Would you prefer a PR?

josefnpat avatar Oct 10 '15 20:10 josefnpat

sudo cpan Imager on Mac OS X doesn't get you PNG support, you need to also install libpng somehow. so at that point I gave up. :(

gingerbeardman avatar May 22 '16 19:05 gingerbeardman