Обсуждение: Runtime Problems

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

Runtime Problems

От
"Richard Luckhurst"
Дата:
Hi All

Just to see if it was me having problems building Postgresql I just
downloaded
the binary from last night and tried to install and run that. I get all the
same errors
I have been getting with my build. Before trying the downloaded binary I
removed any
other development versions from my PC. It doesn't seem to matter what I put
after
the initdb command I still get the same error.

So even with a precompiled binary I still get

initdb -D c:\pgsql\data -W --lc-collate=C
Bad command or file name
fgets failure: No error
Bad command or file name
fgets failure: No error
The program "postgres" is needed by initdb but was not found in
the directory "c:/msys/1.0/local/pgsql/bin". Check your installation
_______________________________________
Richard Luckhurst
Manager / Engineer
Sound Advice / BSP Internet Services
P.O. Box 104
Narrabri NSW 2390
Ph / Fax 02 6792 6060
http://www.bsp.aunz.com


Вложения

Re: Runtime Problems

От
Bruce Momjian
Дата:
Richard Luckhurst wrote:
> Hi All
>
> Just to see if it was me having problems building Postgresql I just
> downloaded
> the binary from last night and tried to install and run that. I get all the
> same errors
> I have been getting with my build. Before trying the downloaded binary I
> removed any
> other development versions from my PC. It doesn't seem to matter what I put
> after
> the initdb command I still get the same error.
>
> So even with a precompiled binary I still get
>
> initdb -D c:\pgsql\data -W --lc-collate=C
> Bad command or file name
> fgets failure: No error
> Bad command or file name
> fgets failure: No error
> The program "postgres" is needed by initdb but was not found in
> the directory "c:/msys/1.0/local/pgsql/bin". Check your installation

OK, is 'initdb' in c:/msys/1.0/local/pgsql/bin or somewhere else?  Where
are you downloading this binary?  Is it possible it isn't getting
updated nightly?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

Re: Runtime Problems

От
"Magnus Hagander"
Дата:
> > So even with a precompiled binary I still get
> >
> > initdb -D c:\pgsql\data -W --lc-collate=C Bad command or file name
> > fgets failure: No error Bad command or file name fgets failure: No
> > error The program "postgres" is needed by initdb but was
> not found in
> > the directory "c:/msys/1.0/local/pgsql/bin". Check your installation
>
> OK, is 'initdb' in c:/msys/1.0/local/pgsql/bin or somewhere
> else?  Where are you downloading this binary?  Is it possible
> it isn't getting updated nightly?

Merlin is having build problems with the current CVS, and has been
having for a couple of days, so the binary keeps refreshing the old
version.

Question: Is it in some way possible to get the "snapshot date" put into
the version string when you're compiling a nonrelease build? In the
"select version()" string?
I'm sure it would help in some cases :-), but I have no idea how much
work it would be, or if it's even possible.

//Magnus


Re: Runtime Problems

От
"Richard Luckhurst"
Дата:
Hi Bruce

Yes initdb is in c:\msys\1.0\local\pgsql\bin.

I downloaded the binary from the following location
http://www.hagander.net/pgsql/win32snap/postgres_win32_7.5_devel.zip

Regards

Richard

-----Original Message-----
From: pgsql-hackers-win32-owner@postgresql.org
[mailto:pgsql-hackers-win32-owner@postgresql.org]On Behalf Of Bruce
Momjian
Sent: Tuesday, 18 May 2004 2:05 PM
To: Richard Luckhurst
Cc: PGSQL Hackers
Subject: Re: [pgsql-hackers-win32] Runtime Problems


Richard Luckhurst wrote:
> Hi All
>
> Just to see if it was me having problems building Postgresql I just
> downloaded
> the binary from last night and tried to install and run that. I get all
the
> same errors
> I have been getting with my build. Before trying the downloaded binary I
> removed any
> other development versions from my PC. It doesn't seem to matter what I
put
> after
> the initdb command I still get the same error.
>
> So even with a precompiled binary I still get
>
> initdb -D c:\pgsql\data -W --lc-collate=C
> Bad command or file name
> fgets failure: No error
> Bad command or file name
> fgets failure: No error
> The program "postgres" is needed by initdb but was not found in
> the directory "c:/msys/1.0/local/pgsql/bin". Check your installation

OK, is 'initdb' in c:/msys/1.0/local/pgsql/bin or somewhere else?  Where
are you downloading this binary?  Is it possible it isn't getting
updated nightly?

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

---------------------------(end of broadcast)---------------------------
TIP 9: the planner will ignore your desire to choose an index scan if your
      joining column's datatypes do not match


__________ NOD32 1.763 (20040517) Information __________

This message was checked by NOD32 antivirus system.
http://www.nod32.com



Re: Runtime Problems

От
"Merlin Moncure"
Дата:
> Hi Bruce
>
> Yes initdb is in c:\msys\1.0\local\pgsql\bin.
>
> I downloaded the binary from the following location
> http://www.hagander.net/pgsql/win32snap/postgres_win32_7.5_devel.zip

the pgsql/lib and pgsql/bin folders need to both be in your path.

The pgsql/share folder needs to be specified by initdb...

initdb -L "c:/postgres/share"

quote your paths and use forward slashes for the time being.

The current binary (from last good compile 5/11) works fine :)

Merlin

Re: Runtime Problems

От
Bruce Momjian
Дата:
Merlin Moncure wrote:
> > Hi Bruce
> >
> > Yes initdb is in c:\msys\1.0\local\pgsql\bin.
> >
> > I downloaded the binary from the following location
> > http://www.hagander.net/pgsql/win32snap/postgres_win32_7.5_devel.zip
>
> the pgsql/lib and pgsql/bin folders need to both be in your path.
>
> The pgsql/share folder needs to be specified by initdb...
>
> initdb -L "c:/postgres/share"
>
> quote your paths and use forward slashes for the time being.
>
> The current binary (from last good compile 5/11) works fine :)

I made a bunch of Win32 fixes 12 hours ago.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073