[DLP] Running install.sh returns bad interpreter error
search cancel

[DLP] Running install.sh returns bad interpreter error

book

Article ID: 247685

calendar_today

Updated On:

Products

Data Loss Prevention

Issue/Introduction

When trying run install.sh to install DLP the following error is returned. 

-bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

Environment

RHEL 7.x 8.x

WinSCP

Windows 10

Cause

When copying the extracted files from the platform zip file, WinSCP added ^M characters to the install.sh file. 

NOTE: When copying with WinSCP make sure binary copying is enabled and not ASCI/text mode.

Resolution

  1. ssh to the Linux system using putty 
  2. cd to the directory where the install.sh exists
  3. run the following command
sed -i -e 's/\r$//' install.sh