http://qs321.pair.com?node_id=1190353

m_jaser has asked for the wisdom of the Perl Monks concerning the following question:

Hi PerlMonks,

I have a perl script which I'd like to encrypt before it is further distributed, I came across the "Module::Crypt" module and now i'm trying to install it but running into errors, please see below the cpan install log.

My Questions are:

1- Is "Module::Crypt" good enough to encrypt a perl script?

2- Would the script's execution slow down after it is encrypted?

3- I couldn't find good info or examples on how to use this module, can you please help share any info you have on the Crypt module?

Thank You...!

Going to read '/home/emarwja/.cpan/Metadata' Database was generated on Mon, 15 May 2017 01:53:49 GMT Running install for module 'Module::Crypt' Running make for A/AA/AAR/Module-Crypt-0.06.tar.gz Checksum for /home/emarwja/.cpan/sources/authors/id/A/AA/AAR/Module-Cr +ypt-0.06.tar.gz ok Scanning cache /home/emarwja/.cpan/build for sizes ...................................................................... +......DONE CPAN.pm: Going to build A/AA/AAR/Module-Crypt-0.06.tar.gz Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Module::Crypt Writing MYMETA.yml and MYMETA.json cp Crypt.pm blib/lib/Module/Crypt.pm Manifying 1 pod document AAR/Module-Crypt-0.06.tar.gz /usr/bin/make -- OK Running make test PERL_DL_NONLAZY=1 "/usr/bin/perl.exe" "-MExtUtils::Command::MM" "-MTes +t::Harness" "-e" "undef *Test::Harness::Switches; test_harness(0, 'bl +ib/lib', 'blib/arch')" t/*.t t/01-basic.t ... 1/4 Can't exec "gcc": No such file or directory at /u +sr/lib/perl5/5.14/ExtUtils/CBuilder/Base.pm line 320. error building /home/emarwja/.cpan/build/Module-Crypt-0.06-KS3wJ4/t/ou +tput/tmp.725HDoQ_K/Foo/Bar.o from '/home/emarwja/.cpan/build/Module-C +rypt-0.06-KS3wJ4/t/output/tmp.725HDoQ_K/Foo/Bar.c' at /usr/lib/perl5/ +5.14/ExtUtils/CBuilder/Base.pm line 175. t/01-basic.t ... Failed 3/4 subtests t/02-nopass.t .. 1/4 Can't exec "gcc": No such file or directory at /u +sr/lib/perl5/5.14/ExtUtils/CBuilder/Base.pm line 320. error building /home/emarwja/.cpan/build/Module-Crypt-0.06-KS3wJ4/t/ou +tput/tmp.2l5rqhYfM/Foo/Bar.o from '/home/emarwja/.cpan/build/Module-C +rypt-0.06-KS3wJ4/t/output/tmp.2l5rqhYfM/Foo/Bar.c' at /usr/lib/perl5/ +5.14/ExtUtils/CBuilder/Base.pm line 175. t/02-nopass.t .. Failed 3/4 subtests t/03-death.t ... 1/4 Can't exec "gcc": No such file or directory at /u +sr/lib/perl5/5.14/ExtUtils/CBuilder/Base.pm line 320. error building /home/emarwja/.cpan/build/Module-Crypt-0.06-KS3wJ4/t/ou +tput/tmp.mfsA7O4tA/Foo/Bar.o from '/home/emarwja/.cpan/build/Module-C +rypt-0.06-KS3wJ4/t/output/tmp.mfsA7O4tA/Foo/Bar.c' at /usr/lib/perl5/ +5.14/ExtUtils/CBuilder/Base.pm line 175. t/03-death.t ... Failed 3/4 subtests t/04-addl1.t ... 1/3 Can't exec "gcc": No such file or directory at /u +sr/lib/perl5/5.14/ExtUtils/CBuilder/Base.pm line 320. error building /home/emarwja/.cpan/build/Module-Crypt-0.06-KS3wJ4/t/ou +tput/tmp.o38HupnwY/Foo/Bar.o from '/home/emarwja/.cpan/build/Module-C +rypt-0.06-KS3wJ4/t/output/tmp.o38HupnwY/Foo/Bar.c' at /usr/lib/perl5/ +5.14/ExtUtils/CBuilder/Base.pm line 175. t/04-addl1.t ... Failed 2/3 subtests t/05-addl2.t ... 1/4 Can't exec "gcc": No such file or directory at /u +sr/lib/perl5/5.14/ExtUtils/CBuilder/Base.pm line 320. error building /home/emarwja/.cpan/build/Module-Crypt-0.06-KS3wJ4/t/ou +tput/tmp.0Xlt2aTWA/Foo/Bar.o from '/home/emarwja/.cpan/build/Module-C +rypt-0.06-KS3wJ4/t/output/tmp.0Xlt2aTWA/Foo/Bar.c' at /usr/lib/perl5/ +5.14/ExtUtils/CBuilder/Base.pm line 175. t/05-addl2.t ... Failed 3/4 subtests Test Summary Report ------------------- t/01-basic.t (Wstat: 0 Tests: 1 Failed: 0) Parse errors: Bad plan. You planned 4 tests but ran 1. t/02-nopass.t (Wstat: 0 Tests: 1 Failed: 0) Parse errors: Bad plan. You planned 4 tests but ran 1. t/03-death.t (Wstat: 0 Tests: 1 Failed: 0) Parse errors: Bad plan. You planned 4 tests but ran 1. t/04-addl1.t (Wstat: 0 Tests: 1 Failed: 0) Parse errors: Bad plan. You planned 3 tests but ran 1. t/05-addl2.t (Wstat: 0 Tests: 1 Failed: 0) Parse errors: Bad plan. You planned 4 tests but ran 1. Files=5, Tests=5, 4 wallclock secs ( 0.06 usr 0.37 sys + 1.07 cusr + 1.91 csys = 3.42 CPU) Result: FAIL Failed 5/5 test programs. 0/5 subtests failed. Makefile:857: recipe for target 'test_dynamic' failed make: *** [test_dynamic] Error 255 AAR/Module-Crypt-0.06.tar.gz /usr/bin/make test -- NOT OK //hint// to see the cpan-testers results for installing this module, t +ry: reports AAR/Module-Crypt-0.06.tar.gz Running make install Manifying 1 pod document Appending installation info to /usr/lib/perl5/5.14/i686-cygwin-threads +-64int/perllocal.pod AAR/Module-Crypt-0.06.tar.gz /usr/bin/make install -- OK Failed during this command: AAR/Module-Crypt-0.06.tar.gz : make_test FAILED but f +ailure ignored because 'force' in effect