When upgrading NetScaler getting error -bash: ./installns: /usr/bin/perl: bad interpreter

When upgrading NetScaler getting error -bash: ./installns: /usr/bin/perl: bad interpreter

book

Article ID: CTX582458

calendar_today

Updated On:

Description

When upgrading NetScaler getting error  ./installns: /usr/bin/perl: bad interpreter: No such file or directory

Resolution

  1. The error is due to the Perl link being broken in the usr/bin folder and the file itself is missing in (/var/perl5/bin for 13.1 or /usr/local/bin/ for 13.0) folder.
image.png
  1. WinScp in the appliance.
  2. Copy all the files of (/var/perl5/bin for 13.1 or /usr/local/bin/ for 13.0) from another NetScaler with the same version and build.
  3. Edit and refresh the link of the Perl in usr/bin and in the directory where the actual file resides (/var/perl5/bin for 13.1 or /usr/local/bin/ for 13.0).
image.png
  1. Please make sure the permissions are set correctly for both the link, in usr/bin and the actual file in (/var/perl5/bin for 13.1 or /usr/local/bin/ for 13.0) for the file Perl by comparing it with the NetScaler where we copied files from.
  2. Rerun the ./installns. 
Note: If no other NetScaler runs the current version, these files are available in the firmware image files available on the download site, all you need to do is download the current running version, extract and copy the needed files.

Problem Cause

The files are missing in Perl bin folder.