OK, so I've installed JRE on our dedicated server....then I uploaded & configured the RMS files. I've been following the Ray Server installation instructions at http://www.boonex.com/trac/ray/wiki/RayServerInstall, up to the heading for RMS Test Launch. However, when I invoke the command ./red5.sh, the message I receive is:
-bash: ./red5.sh: /bin/bash^M: bad interpreter: No such file or directory
I clearly see the red5.sh file sitting there in the rms directory ("no such file"?), so what gives?
Thank you for any help you can give!
|
Does your dedicated server have the bash shell installed?
https://www.deanbassett.com |
Umm, don't know, deano. How would I know, other than asking our hosting company? Thanks! |
from a shell you can type
bash --version
That should return the version of bash thats installed. Or a error if command not found.
The command
which bash
Should return a path to the bash shell.
The error you are getting says bad interpreter which suggests it can't find bash. Bash is the default shell for most linux distros.
If it not installed it will have to be. The shell scripts for RMS are written for that shell.
How to install it will depend on what distro of linux your server is running.
So the easy thing to do is put in a ticket with your host. Ask them to install bash, or provide you with the instructions on how to install it.
I don't think your running redhat or centos because both of those distros would already have it installed.
https://www.deanbassett.com |
Actually, I just logged in to WebHostManager and it's running CENTOS 5.4 x86_64 standard. |
Very odd. bash should be there then. Unless the host removed it for some odd reason.
https://www.deanbassett.com |
I noticed something else odd with that error.
How did you upload the RMS zip file. Did you unpack it locally then upload with ftp or did you upload the zip file to the server and upack it there.
The proper way is to upload the zip file to the server and unpack it with the unzip command from the shell.
It may be the shell script is full of dos carriage returns that might be causing the problem.
The ^M on saw on your error line tipped me off to that possibility. https://www.deanbassett.com |
bash is located at bin>bash
Yes, I extracted the files locally and THEN uploaded them to our server. I thought I had followed the RMS installations instructions here on this site. Should I redo it as you suggested? Thanks!
|
You could clean the .sh files.
While in the RMS server directory run
dos2unix red5.sh
Do the same for other .sh files
That should strip out any lingering dos carrige returns that might be mucking it up.
If that fails to resolve it, then yes, try uploading the zip file and unpacking it on the server with unzip.
https://www.deanbassett.com |
Just got done - uploaded the tar.gz file, unpacked, downloaded the files that needed to be configured, configured those and re-uploaded them, set the permissions, ran the test launch -- and received the exact same error message again.
Would my downloading and editing those files on my local machine, and then re-uploading them, have mucked it up? Thanks.
|
Just got done - uploaded the tar.gz file, unpacked, downloaded the files that needed to be configured, configured those and re-uploaded them, set the permissions, ran the test launch -- and received the exact same error message again.
Would my downloading and editing those files on my local machine, and then re-uploading them, have mucked it up? Thanks.
Yes, it could have.
When uploading them back up via FTP use ascii mode on those text file. Don't use binary transfer.
https://www.deanbassett.com |
Deano, you are my savior! I ran the command that you suggested, dos2unix red5.sh, and it ran! It began "Starting Red5", and the last thing that appears is "[RAY notification - Board.init] Board application was started".
Thank you SO much for your help!!!!
|
Glad you got it resolved.
Your welcome.
https://www.deanbassett.com |