pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
problems with missing bin
2+ messages / 2 participants
[nested] [flat]

* problems with missing bin
@ 2003-10-15 18:54  b p <bruce84@yahoo.com>
  0 siblings, 1 reply; 2+ messages in thread

From: b p @ 2003-10-15 18:54 UTC (permalink / raw)
  To: pgsql-admin

Good afternoon everyone,
I am setting up Postgresql on my redhat 8 system. I
have installed the files and have set up the proper
directories, however I have run into a problem. I am
trying to initialize the database with initdb. The
command is 

pg$ /usr/local/pgsql/bin/initdb -D
/usr/local/pgsql/data

I did not have a bin in that first half of the
statement so in locating initdb, I found it in the
dire /usr/bin. I then used the following line:

pg$ /usr/bin/initdb -D /usr/local/pgsql/data 

After running the line above, I got a message saying
success! I then started the postmaster and again
everything went fine. However I need to create users
for this database so I use the following command:

pg$ /usr/local/pgsql/bin/createuser bruce

I get an error stating there is no such directory. The
question is, how do I get the postgres bin created?
Also I am guessing that the bin should have commands
that are specific to postgresql. Is there a way for me
to import this bin from /usr/bin ? Any help is greatly
appreciated. Thanks!

Bruce

__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: problems with missing bin
@ 2003-10-17 05:10  A.Bhuvaneswaran <bhuvan@symonds.net>
  parent: b p <bruce84@yahoo.com>
  0 siblings, 0 replies; 2+ messages in thread

From: A.Bhuvaneswaran @ 2003-10-17 05:10 UTC (permalink / raw)
  To: b p <bruce84@yahoo.com>; +Cc: pgsql-admin

> I get an error stating there is no such directory. The question is, how
> do I get the postgres bin created?

I suppose, you have installed it from binary rpm. By default, packages
will be installed in /usr/bin/. If you wish to have postgres commands in
seperate directory, you might require to re-compile postgresql specifying
the install directory. During re-compilation, refer './configure --help'
for details.

regards,
bhuvaneswaran





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-10-17 05:10 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-15 18:54 problems with missing bin b p <bruce84@yahoo.com>
2003-10-17 05:10 ` A.Bhuvaneswaran <bhuvan@symonds.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox