Bash error when installing a perl package for linux

Hello,

I'm trying to install a perl package on a linux RH70 environment and unfortunately I have a bash error. Here is a copy of my screen:

curl -q https://platform.activestate.com/dl/cli/pdli01/install.sh | bash -s activate-default iFaugeras/Perl-5.32
% Total % Received % Xferd Average Speed Time Time Time Current

  •                             Dload  Upload   Total   Spent    Left  Speed*
    

100 10663 0 10663 0 0 14124 0 --:–:-- --:–:-- --:–:-- 14141
Installing the State Tool …
which: no state in (/sw/platform/lsf/10.1/linux3.10-glibc2.17-x86_64/etc:/sw/platform/lsf/10.1/linux3.10-glibc2.17-x86_64/bin:/usr/X11R6/bin:/bin:/usr/bin:/sw/st/util/local/bin:/sw/st/util/common/bin:/apa/util/bin:.)
\033[2m╔═══════════════════════╗
║ \033[0m\033[39;1mInstalling State Tool\033[0m \033[2m║
╚═══════════════════════╝\033[0m

*ActiveState collects usage statistics and diagnostic data about failures. The collected data complies *
*with ActiveState Privacy Policy (https://www.activestate.com/company/privacy-policy/) and will be used *
to identify product enhancements, help fix defects, and prevent abuse.

*By running the State Tool installer you consent to the Privacy Policy. This is required for the State *
Tool to operate while we are still in beta.

*Please note that the installer may modify your shell configuration file (eg., .bashrc) to add the *
installation PATH to your environment.

==> Preparing for installation…
which: no state in (/sw/platform/lsf/10.1/linux3.10-glibc2.17-x86_64/etc:/sw/platform/lsf/10.1/linux3.10-glibc2.17-x86_64/bin:/usr/X11R6/bin:/bin:/usr/bin:/sw/st/util/local/bin:/sw/st/util/common/bin:/apa/util/bin:.)
which: no state in (/sw/platform/lsf/10.1/linux3.10-glibc2.17-x86_64/etc:/sw/platform/lsf/10.1/linux3.10-glibc2.17-x86_64/bin:/usr/X11R6/bin:/bin:/usr/bin:/sw/st/util/local/bin:/sw/st/util/common/bin:/apa/util/bin:.)
*Accept terms and proceed with install? [Y/n] *
bash: line 318: syntax error near unexpected token )'* *bash: line 318: [Nn])’

Could you help me to understand what’s wrong ?

Thank you,

       Isabelle

Hi Isabelle, I’ve asked a member of the CLI team to check in on this and will get back to you once I hear from them. I noticed that your install command

  • curl -q https://platform.activestate.com/dl/cli/pdli01/install.sh | bash -s activate-default iFaugeras/Perl-5.32

Is not the same as the install command we normally present to users

  • sh <(curl -q https://platform.activestate.com/dl/cli/pdli01/install.sh) --activate-default iFaugeras/Perl-5.32

Have you tried running the second, usual command?

Yes, I also tried, but I got the following error:
Missing name for redirect.

I used syntax with | bash…. because it should be an equivalent syntax to give arguments to the script.

       Isabelle
1 Like

Hi there,

Could you share the full output of the command (including all errors) when you run the sh one-liner? (the one @flukeout gave)

Also, could you share with us the version of your sh, by running sh --version?

Thank you

Here are the answers to your question:

I’m afraid of not having any other message.

     Isabelle

Hi,

Is there any news on this topic ?

Isabelle

ST Restricted

Hi Isabelle, could you try running the following command (unchanged)?

bash -c "sh <(curl -q https://platform.activestate.com/dl/cli/pdli01/install-latest.sh) --activate-default iFaugeras/Perl-5.32"

If this still results in an error, please run this command and share the full output:

bash -c "VERBOSE=true sh <(curl -q https://platform.activestate.com/dl/cli/pdli01/install-latest.sh) --activate-default iFaugeras/Perl-5.32"

Hi,

I tried your command and now it is working !

Thank you for your support.

Isabelle

ST Restricted