initdb missing in /usr/bin

Bug #657540 reported by hielos
12
This bug affects 3 people
Affects Status Importance Assigned to Milestone
postgresql-8.4 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: postgresql-8.4

I wanted to initiate a new database using
<b>initdb -D /newdir</b>

The prompt would always tell me it could not find the command. After a while (a day or two; I'm not an expert) I realised that most probably the reason would be that the initdb was just missing from my /usr/bin folder. I just added a
<b>ln -s /usr/bin/initdb /usr/lib/postgresql/8.4/bin/initdb</b>

This may sound dumb, but I guess it could happen to anyone. I just wonder why the command wasn't available from the beginning. May be there is a "for the greater good" explanation. Hopes this helps.

ProblemType: Bug
DistroRelease: Ubuntu 10.04
Package: postgresql-8.4 8.4.5-0ubuntu10.04
ProcVersionSignature: Ubuntu 2.6.32-25.44-generic 2.6.32.21+drm33.7
Uname: Linux 2.6.32-25-generic i686
Architecture: i386
Date: Sat Oct 9 23:05:33 2010
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04.1 LTS "Lucid Lynx" - Release i386 (20100816.1)
ProcEnviron:
 LANG=es_MX.utf8
 SHELL=/bin/bash
SourcePackage: postgresql-8.4

Revision history for this message
hielos (hielos-deactivatedaccount) wrote :
Revision history for this message
hielos (hielos-deactivatedaccount) wrote :

sorry, this is a edit:
ln -s /usr/lib/postgresql/8.4/bin/initdb /usr/bin/initdb

instead of the above

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in postgresql-8.4 (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.