From: Will Budic Date: Fri, 1 Dec 2023 11:50:04 +0000 (+1100) Subject: Fixed, absolute first setup requirements. X-Git-Url: https://lifelog.hopto.org/gitweb/?a=commitdiff_plain;h=ab3499230fd5213e693ced41625b20af5ddf2281;p=PerlCNF.git Fixed, absolute first setup requirements. --- diff --git a/install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh b/install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh new file mode 100755 index 0000000..b5b12de --- /dev/null +++ b/install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash +# This is all required for working with module installation from the shell. +# And later to run tests and have a test driven application development, setup. +# +# If using perlbrew with the test, sometimes this setup is required from the shell: +# $ export PerlCNF_TESTS_PATH=tests +# And run test with: +# $ perlbrew exec perl -Mlocal::lib tests/testAll.pl +# Instead of: +# $ perl tests/testAll.pl# +# As latert Perl v5.36+ version should work fine without the install of local::lib. +# +perl -MCPAN -e 'CPAN::install(local::lib)' +perl -MCPAN -Mlocal::lib -e 'CPAN::install(LWP)' +perl -MCPAN -Mlocal::lib -e 'CPAN::install(Text::Levenshtein::XS)' +perl -MCPAN -Mlocal::lib -e 'CPAN::install(Term::Term:)' +perl -MCPAN -Mlocal::lib -e 'CPAN::install(Term::ReadKey)' +./install_cpan_modules_required.pl diff --git a/install_cpan_a_first.sh b/install_cpan_a_first.sh deleted file mode 100755 index f3f73fe..0000000 --- a/install_cpan_a_first.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env bash -cpan -i Term::Term::ANSIColor Term::ReadKey -./install_cpan_modules_required.pl