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

Re: postgres install fails on sid



On Sun, Oct 07, 2007 at 13:49:11 +0000, John Masters wrote:
> I have posted this to the Postgres list also.
> 
> Cannot get Postgres 8.2 working on Debian sid using the Debian package.
> At the config stage I get a message telling me to run:-
> 
>     pg_createcluster 8.2 main --start
> 
> Doing this (as root) produces the following output:-
> 
>     Creating new cluster (configuration: /etc/postgresql/8.2/main, \
>     data: /var/lib/postgresql/8.2/main)...
>     sh: /dev/null: Permission denied
>     fgets failure: Success
>     The program "postgres" is needed by initdb but was not found in the
>     same directory as "/usr/lib/postgresql/8.2/bin/initdb".
>     Check your installation.
>     Error: initdb failed
> 
> But the program postgres IS in the same directory as initdb
> 
> 8.1 installed OK on my Etch server so I tried that on sid
> Same result
> 
> Anyone any ideas?

I would start with the first problem that is reported: "sh: /dev/null:
Permission denied". What are the permissions of the /dev/null node on
your system? It should be writable by anyone:

$ ls -l /dev/null
crw-rw-rw- 1 root root 1, 3 2007-10-07 14:28 /dev/null

-- 
Regards,            | http://users.icfo.es/Florian.Kulzer
          Florian   |



Reply to: