Thread: Fwd: installing postgres7.3.4 problem II

Fwd: installing postgres7.3.4 problem II

From
javier garcia - CEBAS
Date:
Please, disregard my last message. I've discovered that in "password" file it
was mentioned a path '/var/lib/psql' where Mandrake distro installed postres
previously. I've solved it.

But I still have another problem:

A later step in Postgres installation instructions says:
"/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &"
and with this I obtain:
"bash: logfile: Dennied permission"

I don't know bash either, so I can't understand the problem.

Could you give me a hand?

Javier

------------------------------------------------------
----------  Mensaje reenviado  ----------

Subject: installing postgres7.3.4 problem
Date: Tue, 26 Aug 2003 18:10:10 +0200
From: javier garcia - CEBAS <rn001@cebas.csic.es>
To: pgsql-general@postgresql.org

Hi all.
(I'm a newby. I recognize it)
At the moment I had postgres running on my Linux machine with no problem.
I had version 7.2 installed, and this version came along with my Mandrake
distribution.
Now, I want to install a contribution package (postgis extensions), and
previously I would like to  install a newer postgres version.
So, I've downloaded the postgres-7.3.4 source code and compiled it. But,
following the guidelines in the documentation, after "make install", I've
typed:
# su - postgres
(I don't know the meaning of a "login shell", but this is not my problem)
And then appears the message (in  spanish):
"su: atention: we can't change to the directory /var/lib/pgsql: the directory
or file doesn't exists"

Previously I had postgres databases in /var/lib/pgsql. But I've uninstalled
the previously the 7.2 version and I don't know why this happens.

Could anyone guide me with this?

thanks and regards

Javier

-------------------------------------------------------

Re: Fwd: installing postgres7.3.4 problem II

From
Robby Russell
Date:
javier garcia - CEBAS wrote:

> Please, disregard my last message. I've discovered that in "password" file it
> was mentioned a path '/var/lib/psql' where Mandrake distro installed postres
> previously. I've solved it.
>
> But I still have another problem:
>
> A later step in Postgres installation instructions says:
> "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &"
> and with this I obtain:
> "bash: logfile: Dennied permission"
>
> I don't know bash either, so I can't understand the problem.
>
> Could you give me a hand?
>
> Javier

Javier,


What user are you when installing postgres?
You might try to do the following:
--
/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data -l
/tmp/pgsql.log start

--

Basically, the problem you are having is that the user that you are
currently logged intot he shell as, doesn't have permission to
create/write to the 'logfile' in the current directory. My suggestion
would write your log to the /tmo directory. (which most users should
have access to write to)

-Robby

--
Robby Russell,  |  Sr. Administrator / Lead Programmer
Command Prompt, Inc.   |  http://www.commandprompt.com
rrussell@commandprompt.com | Telephone: (503) 222.2783


Re: Fwd: installing postgres7.3.4 problem II

From
Bruno Wolff III
Date:
On Tue, Aug 26, 2003 at 18:40:12 +0200,
  javier garcia - CEBAS <rn001@cebas.csic.es> wrote:
> Please, disregard my last message. I've discovered that in "password" file it
> was mentioned a path '/var/lib/psql' where Mandrake distro installed postres
> previously. I've solved it.
>
> But I still have another problem:
>
> A later step in Postgres installation instructions says:
> "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1 &"
> and with this I obtain:
> "bash: logfile: Dennied permission"
>
> I don't know bash either, so I can't understand the problem.

You don't have access to create or write 'logfile' in the current directory.
You might want to use a full path to wherever you want the logfille to be.

Re: Fwd: installing postgres7.3.4 problem II

From
Darko Prenosil
Date:
On Tuesday 26 August 2003 19:59, Bruno Wolff III wrote:
> On Tue, Aug 26, 2003 at 18:40:12 +0200,
>
>   javier garcia - CEBAS <rn001@cebas.csic.es> wrote:
> > Please, disregard my last message. I've discovered that in "password"
> > file it was mentioned a path '/var/lib/psql' where Mandrake distro
> > installed postres previously. I've solved it.
> >
> > But I still have another problem:
> >
> > A later step in Postgres installation instructions says:
> > "/usr/local/pgsql/bin/postmaster -D /usr/local/pgsql/data >logfile 2>&1
> > &" and with this I obtain:
> > "bash: logfile: Dennied permission"
> >
> > I don't know bash either, so I can't understand the problem.
>
> You don't have access to create or write 'logfile' in the current
> directory. You might want to use a full path to wherever you want the
> logfille to be.
>
    If You downloaded PostgreSQL sources, there are startup scripts in contrib
dir. If You do not have the sources, You can download it from :

http://developer.postgresql.org/cvsweb.cgi/pgsql-server/contrib/start-scripts/

Usage is simple: get the script, put it in the /etc/init.d/ and name it
'postgres'. (I assume You are using Linux).
To start the server simply type: /etc/init.d/postgres start.
You can use one of the five switches: start, stop, restart , reload and
status.

Regards !