I have already looked at similar posts in this forum related to bad interpreter and denied permissions, and was unable to find a solution to this problem.
I have a vps Linux x64 (v2.6.18; CentOS 6.7). I am working on a particular project (OpenClinica) for a client and I need to install Postgresql version 8.4 (old version, I know) directly from a .bin file. The file looks like postgresql-8.4.1-1-linux-x64.bin
. As far as I understood, this .bin
file creates some .sh
files on /tmp/postgresql_installer/
.
I was also told that this file works OK and has already successfully performed installations of Postgres on many other Linux (CentOS) systems running OpenClinica.
When I run it as root at the command line typing this
./postgresql* --mode text
I get the frustrating message below.
Error:
Error running /tmp/postgresql_installer/getlocales.sh :
/bin/sh: /tmp/postgresql_installer/getlocales.sh:
/bin/sh: bad interpreter: Permission denied
What I have already checked (looking in this and other forums)
the first line of
getlocales.sh
has#!/bin/sh
in itthere is a link
sh -> bash*
at/bin
root@vps [/bin]# ls -l sh lrwxrwxrwx 1 root root 4 Nov 14 12:29 sh -> bash*
sestatus
is DISABLEDI gave
chmod x
permission topostgres*.bin
before I ran it.I have even tried to run
postgres*.bin
from~/
with no success.
Any ideas?
echo postgresql*
in the directory you are running it from?sed -n 1l /tmp/postgresql_installer/getlocales.sh
- does that end with\r$
? was the script edited or created on a windows machine?