chadmayfield / my-pihole-blocklists

Create custom pi-hole blocklists
GNU General Public License v3.0
334 stars 72 forks source link

Just cant get script to run past line 12 #33

Open pneu1 opened 3 years ago

pneu1 commented 3 years ago

Error I get is: Can't locate Archive/Zip.pm in @INC (you may need to install the Archive::Zip module) (@INC contains: /home/pi/git/my-pihole-blocklists/ /etc/perl /usr/local/lib/arm-linux-gnueabihf/perl/5.28.1 /usr/local/share/perl/5.28.1 /usr/lib/arm-linux-gnueabihf/perl5/5.28 /usr/share/perl5 /usr/lib/arm-linux-gnueabihf/perl/5.28 /usr/share/perl/5.28 /usr/local/lib/site_perl /usr/lib/arm-linux-gnueabihf/perl-base) at ./create_blocklist_porn.pl line 12. BEGIN failed--compilation aborted at ./create_blocklist_porn.pl line 12.

I followed the below steps as best as I understood them. No issues installing Array::Utils. Not sure I understand the second step around 'export' in any case the script stops at trying to import Archive::Zip

Array::Utils (install via sudo perl -MCPAN -e 'install Array::Utils' aslo you may needed to use export PERL5LIB= after installing Array::Utils to add path to the library)

se7enge commented 3 years ago

I can confirm that I am having the exact same error. I am trying to run this from an Arch based machine (Manjaro), not a Raspberry pi, if that helps at all; since I am just trying to generate the block list for my use case.

My terminal output:

"Can't locate Archive/Zip.pm in @INC (you may need to install the Archive::Zip module) (@INC contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at ./create_blocklist_porn.pl line 12. BEGIN failed--compilation aborted at ./create_blocklist_porn.pl line 12."

Any help much appreciated.

bcroniser commented 3 years ago

Your missing a Perl library. Try installing this for Arch Linux. There will likely be others that you will also have to install. Arch Linux doesn’t have the same Perl environment setup by default. https://archlinux.org/packages/extra/any/perl-archive-zip/

If you search for .pm Arch Linux, you should be able to track down the packages that you are missing.

On Tue, Apr 20, 2021 at 6:31 PM se7enge @.***> wrote:

I can confirm that I am having the exact same error. I am trying to run this from an Arch based machine (Manjaro), not a Raspberry pi, if that helps at all; since I'm just trying to generate the block list for my use case.

My terminal output:

"Can't locate Archive/Zip.pm in @inc https://github.com/inc (you may need to install the Archive::Zip module) @.*** https://github.com/inc contains: /usr/lib/perl5/5.32/site_perl /usr/share/perl5/site_perl /usr/lib/perl5/5.32/vendor_perl /usr/share/perl5/vendor_perl /usr/lib/perl5/5.32/core_perl /usr/share/perl5/core_perl) at ./ create_blocklist_porn.pl line 12. BEGIN failed--compilation aborted at ./create_blocklist_porn.pl line 12."

Any help much appreciated.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/chadmayfield/my-pihole-blocklists/issues/33#issuecomment-823640704, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARXQYNYINMNIU4ON57CFI5DTJX6F7ANCNFSM4WRHAVPQ .