[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: postgresql problem in woody and sid

On Mon, 2002-11-18 at 02:31, marco wrote:
> I cannot get postgresql to install :
> Here is the error message:
> Now installing the PostgreSQL database files in /var/lib/postgres/data
> su - postgres -c cd /var/lib/postgres; . ./.bash_profile; LANG=C initdb 
> --encoding UNICODE --pgdata /var/lib/postgres/data
> -su: initdb: command not found
> I played around with the .profile and .bash_profile in /var/lib/postgres 
> which were both not exporting the PATH but this did not help.

~postgres/.bash_profile should contain:

    . /etc/postgresql/postmaster.conf
    export PGLIB PGDATA

Oliver Elphick                                Oliver.Elphick@lfix.co.uk
Isle of Wight, UK                            
GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D 0C1C
     "A Song for the sabbath day. It is a good thing to 
      give thanks unto the LORD, and to sing praises unto 
      thy name, O most High."   Psalms 92:1 

Reply to: