Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm using FreeBSD 8.0 and I've setup a jail, pgsql, to act as a database server. After installing, I've tried to run initdb but get the following error:

$ /usr/local/pgsql/bin/initdb -D /usr/home/pgsql
cannot create /dev/null: Permission denied
fgets failure: No such file or directory
The program "postgres" is needed by initdb but was not found in the
same directory as "/usr/local/pgsql/bin/initdb".
Check your installation.

yet dev/null exists:

root # ls /dev
null

and postgres is in the same directory:

root # find / -name postgres -print
/usr/local/pgsql/bin/postgres

Any ideas?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

so /dev/null exists, or you have devfs mounted? If you just made a symlink or something, that doesn't work.

share|improve this answer
    
I must have forgotten to remount after a restart. –  gvkv Jul 10 '10 at 8:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.