Page 1 of 1

installation problems

Posted: Thu Dec 04, 2008 3:29 pm
by suppenhuhn
hi!

i tried serveral times to install open emm on our server due to the installation instructions on the openemm website installations.txt .

but starting the installer, following massage appears:

/[root@s16830545 tmp]# -bash: ./OpenEMM-Installer-v1.1.sh: /bin/bash^M: bad interpreter: No such file or directory


does anybody know what the problem could be ?

thank you,
robert

Do you have Bash?

Posted: Fri Dec 05, 2008 10:26 am
by lord_alan
Firstly do you actually have Bash on your system and is it the default shell? Many systems use "sh" which is not quite the same.

Also, the ^M is a bit worrying. That looks to me like you have Windows line termination characters in your scripts. I'm not sure if this will cause a problem but in unix system you do not need to terminate a line with CR+LF.

http://homepage.smc.edu/morgan_david/CS ... nators.htm

HTH

Alan

Posted: Sat Nov 21, 2009 7:03 pm
by leeburstroghm
I have the exact same issue.

I look at the script in VIM and all looks ok. every line ending in $ with :set list

I was not however able to run any script in tmp. I had to move the script to my home dir. No scripts were allowed to run in my tmp dir.

Any help with this.?
bash: ./OpenEMM-Installer-1.2.sh: /bin/bash^M: bad interpreter: No such file or directory

Posted: Mon Nov 23, 2009 8:03 am
by reisubX
leeburstroghm wrote:Any help with this.?
bash: ./OpenEMM-Installer-1.2.sh: /bin/bash^M: bad interpreter: No such file or directory
Hi, It's because the script is in dos format. You must convert it to unix format with 'dos2unix'.

Posted: Mon Nov 23, 2009 3:20 pm
by leeburstroghm
And if your installation does not have dos2unix, like mine.

then use the following

sed -i 's/\r//' filename

to remove the chars causing the script to fail