From ab3499230fd5213e693ced41625b20af5ddf2281 Mon Sep 17 00:00:00 2001 From: Will Budic Date: Fri, 1 Dec 2023 22:50:04 +1100 Subject: [PATCH] Fixed, absolute first setup requirements. --- ...cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh | 18 ++++++++++++++++++ install_cpan_a_first.sh | 3 --- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 install_cpan_INSTALL_PREPARE_PROJECT_SETUP_FIRST.sh delete mode 100755 install_cpan_a_first.sh 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 -- 2.34.1