Unix Technical Forum

Bizzare initdb failure: "The program "postgres" is needed by initdb"

This is a discussion on Bizzare initdb failure: "The program "postgres" is needed by initdb" within the pgsql Bugs forums, part of the PostgreSQL category; --> Hi all! I am getting the following error when I am trying to create a database cluster with initdb ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Bugs

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:36 AM
Valentin Rodionov
 
Posts: n/a
Default Bizzare initdb failure: "The program "postgres" is needed by initdb"

Hi all!
I am getting the following error when I am trying to create a database
cluster with initdb :

[root@feanor ~/postgresql-8.0.0]# cd /usr/local/pgsql/bin
[root@feanor bin]# su postgres
[postgres@feanor bin]$ ./initdb -D /usr/local/pgsql/data
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/local/pgsql/bin/initdb".
Check your installation.

Then initdb exits.
postgres file IS in the same directory, of course.
The permissions on "postgres", as well as on all other files in the
folder,
are rwxr-xr-x, and root is the owner.
"postgres" itself is runnable.
I have reproduced this error with 8.0.0rc2, 8.0.0 and 8.0.1 .
My system is running Red Hat Linux 7.3 (2.4.18).
Unfortunately, reinstalling Linux is out of question - it is a
production
system used 24/7.
Could anyone figure out what is going on?
Thanks!


---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:36 AM
Tom Lane
 
Posts: n/a
Default Re: Bizzare initdb failure: "The program "postgres" is needed by initdb"

Valentin Rodionov <valiar@scripps.edu> writes:
> [postgres@feanor bin]$ ./initdb -D /usr/local/pgsql/data
> sh: /dev/null: Permission denied


[ raised eyebrow... ] So what are the permissions on your /dev/null?

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:44 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com