OpenEMM-Installer-1.2.sh doesn't work on RHEL5

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

saurya1979
Posts: 3
Joined: Tue Dec 14, 2010 7:37 pm

OpenEMM-Installer-1.2.sh doesn't work on RHEL5

Post by saurya1979 »

Hi,

I am trying to run OpenEMM-Installer script on RHEL5 and it throws me this error:

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

Although bash is working fine. When I execute "bash OpenEMM-Installer.1.2.sh" it throws me:

command not found.2.sh: line 2:
: command not found.2.sh: line 4:
: command not found.2.sh: line 7:
: command not found.2.sh: line 8:
'penEMM-Installer-1.2.sh: line 10: syntax error near unexpected token `{
'penEMM-Installer-1.2.sh: line 10: `{

Can someone please help to install OpenEMM using this script on RHEL5?

Thanks
Saurya
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

I would say there is a general problem that has nothing to do with this script, because the first error message says that the interpreter (needed to execute the script) can not be found.
OpenEMM Maintainer
saurya1979
Posts: 3
Joined: Tue Dec 14, 2010 7:37 pm

Post by saurya1979 »

Script uses /bin/bash as interpreter and RHEL5 comes with /bin/bash as default interpreter and it is available and working fine. It is just this script that throws error. On the other hand, I have also used bash interpreter explicitly to run this script so that it will not use that is mentioned with she-bang character in the script. The errors thrown by both ways i.e with and without explicitly using bash is already posted in initial thread.
saurya1979
Posts: 3
Joined: Tue Dec 14, 2010 7:37 pm

Post by saurya1979 »

I have solved it. I have used following command to convert shell script to unix compatible.

dos2unix openemm-installer-1.2.sh.

It worked.
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Post by maschoff »

Great, thanks for your feedback. We will convert the line breaks and upload a converted version.
OpenEMM Maintainer
Post Reply