MAC OSX DB Question

Поиск
Список
Период
Сортировка
Искать

MAC OSX DB Question

От:
Thomas Castonzo <tcastonzo@mac.com>
Дата:
Hello,

I am trying to set up my database by entering the following command:
"initdb -D  /Users/Shared/PostgreSQL/data"

I get the following message from the shell: "initdb Unknown command"

Any Ideas for troubleshooting this problem?

Thanks,

Tom Castonzo

Re: MAC OSX DB Question

От:
"Henry B. Hotz" <hotz@jpl.nasa.gov>
Дата:
At 10:28 PM -0500 6/21/02, Thomas Castonzo wrote:
>Hello,
>
>I am trying to set up my database by entering the following command:
>"initdb -D  /Users/Shared/PostgreSQL/data"
>
>I get the following message from the shell: "initdb Unknown command"
>

No offence, but I would suppose you're a Unix newby, though perhaps 
an old hand at MacOS.  This means that the initdb command isn't 
stored anyplace the shell (command line interpreter) is looking for 
it.  Those places include /usr/local/bin, and a bunch of standard 
system directories.  So where is it?

That depends on how you installed postgres.  If you 
compiled/installed it yourself then the --prefix= configure 
option would have determined that.  (It defaults to /usr/local should 
that should have been OK.)  If you used some pre-built package then 
the package description should have told you.

Once you find the location then you can add a line to your ~/.cshrc 
file like:  "setenv PATH $PATH:" start a new terminal 
window and you're all set.

Good luck.
-- 
The opinions expressed in this message are mine,
not those of Caltech, JPL, NASA, or the US Government.
Henry.B.Hotz@jpl.nasa.gov, or hbhotz@oxy.edu


FAQ