在FreeBSD下运行PostgreSQL

我使用的是FreeBSD 8.0,我已经build立了一个监狱,pgsql,作为一个数据库服务器。 安装后,我试着运行initdb但得到以下错误:

 $ /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. 

dev/null存在:

 root # ls /dev null 

postgres是在同一个目录中:

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

有任何想法吗?

所以/dev/null存在,或者你有devfs挂载? 如果你只是做了一个符号链接什么的,这是行不通的。