Page 1 of 1

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

Posted: Tue Dec 14, 2010 7:45 pm
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

Posted: Wed Dec 15, 2010 8:25 am
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.

Posted: Wed Dec 15, 2010 10:39 am
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.

Posted: Wed Dec 15, 2010 10:50 am
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.

Posted: Wed Dec 15, 2010 11:05 am
by maschoff
Great, thanks for your feedback. We will convert the line breaks and upload a converted version.