Lists: | pgsql-hackers-win32 |
---|
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Runtime Problems |
Date: | 2004-05-13 01:04:28 |
Message-ID: | PHELJBBOGJFPOPJMDHMPCEGDEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hello All
I am quite new to pgsql and the Win32 port. I have just tried Vishal's new
guide to building
and I am having what looks like a path problem when I try to initialise a
database. I am using
Windows 2000. Everything builds and installs OK and I have copied the files
in the msys\1.0\local\pgsql
to my c:\pgsql folder as per the instructions. I have added C:\pgsql\bin and
c:\pgsql\lib to my path
as instructed. When I try to run initdb I get the following error
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
I would appreciate any clues here as this has me stumped. I don't understand
why is should even be looking in the msys directory.
Regards
Richard
_______________________________________
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
Attachment | Content-Type | Size |
---|---|---|
winmail.dat | application/ms-tnef | 2.2 KB |
From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-13 03:19:20 |
Message-ID: | 1698.24.211.141.25.1084418360.squirrel@www.dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst said:
> Hello All
>
> I am quite new to pgsql and the Win32 port. I have just tried Vishal's
> new guide to building
> and I am having what looks like a path problem when I try to initialise
> a database. I am using
> Windows 2000. Everything builds and installs OK and I have copied the
> files in the msys\1.0\local\pgsql
> to my c:\pgsql folder as per the instructions. I have added
> C:\pgsql\bin and c:\pgsql\lib to my path
> as instructed. When I try to run initdb I get the following error
>
> 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
>
> I would appreciate any clues here as this has me stumped. I don't
> understand why is should even be looking in the msys directory.
>
I haven't had time to read the document referred to, but if it currently
recommends that you run from anywhere but the installed path then I
disagree with it. When we get relocatable installs, which Bruce is working
on, you will be able to move the whole installation around to your heart's
content.
Have you checked that there is still in fact a
C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
problem?
cheers
andrew
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
Cc: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-13 03:42:53 |
Message-ID: | PHELJBBOGJFPOPJMDHMPMEGIEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hi Andrew
> Have you checked that there is still in fact a
> C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
> problem?
Yes there is as I left the entire default installation in place.
I have checked the permissions and everything in the bin directory is
group and world readable and executable.
regards
Richard
From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-13 10:53:45 |
Message-ID: | 2081.24.211.141.25.1084445625.squirrel@www.dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
I said:
> Richard Luckhurst said:
>> Hello All
>>
>> I am quite new to pgsql and the Win32 port. I have just tried Vishal's
>> new guide to building
>> and I am having what looks like a path problem when I try to
>> initialise a database. I am using
>> Windows 2000. Everything builds and installs OK and I have copied the
>> files in the msys\1.0\local\pgsql
>> to my c:\pgsql folder as per the instructions. I have added
>> C:\pgsql\bin and c:\pgsql\lib to my path
>> as instructed. When I try to run initdb I get the following error
>>
>> initdb -D c:\pgsql\data -W --lc-collate=C
The clue is actually in these following 4 lines
>> Bad command or file name
>> fgets failure: No error
>> Bad command or file name
>> fgets failure: No error
For some reason, initdb has found postgres.exe in 2 locations but in both
cases has been unable to execute it, and consequently unable to read in
the version string.
That's a bit strange - I have no explanation for it right now.
The relevant code has just been refactored by Bruce as part of the
relocation stuff.
For now, I still recommend running from the installed path.
cheers
andrew
>> The program "postgres" is needed by initdb but was not found in
>> the directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>
>> I would appreciate any clues here as this has me stumped. I don't
>> understand why is should even be looking in the msys directory.
>>
>
> I haven't had time to read the document referred to, but if it
> currently recommends that you run from anywhere but the installed path
> then I disagree with it. When we get relocatable installs, which Bruce
> is working on, you will be able to move the whole installation around
> to your heart's content.
>
> Have you checked that there is still in fact a
> C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
> problem?
>
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
Cc: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-16 09:28:31 |
Message-ID: | PHELJBBOGJFPOPJMDHMPMEJHEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hi All
I have just recompiled using the latest snapshot and I am still getting
exactly the same errors. I still have the compile stuff in msys and the copy
in c:\pgsql so that explains why it is picking it up twice I guess. In any
case I still have the error I first asked about last week.
Regards
Richard
-----Original Message-----
From: pgsql-hackers-win32-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
Dunstan
Sent: Thursday, 13 May 2004 8:54 PM
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [pgsql-hackers-win32] Runtime Problems
I said:
> Richard Luckhurst said:
>> Hello All
>>
>> I am quite new to pgsql and the Win32 port. I have just tried Vishal's
>> new guide to building
>> and I am having what looks like a path problem when I try to
>> initialise a database. I am using
>> Windows 2000. Everything builds and installs OK and I have copied the
>> files in the msys\1.0\local\pgsql
>> to my c:\pgsql folder as per the instructions. I have added
>> C:\pgsql\bin and c:\pgsql\lib to my path
>> as instructed. When I try to run initdb I get the following error
>>
>> initdb -D c:\pgsql\data -W --lc-collate=C
The clue is actually in these following 4 lines
>> Bad command or file name
>> fgets failure: No error
>> Bad command or file name
>> fgets failure: No error
For some reason, initdb has found postgres.exe in 2 locations but in both
cases has been unable to execute it, and consequently unable to read in
the version string.
That's a bit strange - I have no explanation for it right now.
The relevant code has just been refactored by Bruce as part of the
relocation stuff.
For now, I still recommend running from the installed path.
cheers
andrew
>> The program "postgres" is needed by initdb but was not found in
>> the directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>
>> I would appreciate any clues here as this has me stumped. I don't
>> understand why is should even be looking in the msys directory.
>>
>
> I haven't had time to read the document referred to, but if it
> currently recommends that you run from anywhere but the installed path
> then I disagree with it. When we get relocatable installs, which Bruce
> is working on, you will be able to move the whole installation around
> to your heart's content.
>
> Have you checked that there is still in fact a
> C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
> problem?
>
---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?
http://archives.postgresql.org
__________ NOD32 1.759 (20040513) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-16 10:13:17 |
Message-ID: | 1343.24.211.141.25.1084702397.squirrel@www.dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst said:
> Hi All
>
> I have just recompiled using the latest snapshot and I am still getting
> exactly the same errors. I still have the compile stuff in msys and the
> copy in c:\pgsql so that explains why it is picking it up twice I
> guess. In any case I still have the error I first asked about last
> week.
What parameters did you run configure with?
cheers
andrew
>
> Regards
>
> Richard
>
> -----Original Message-----
> From: pgsql-hackers-win32-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
> Dunstan
> Sent: Thursday, 13 May 2004 8:54 PM
> To: pgsql-hackers-win32(at)postgresql(dot)org
> Subject: Re: [pgsql-hackers-win32] Runtime Problems
>
>
> I said:
>> Richard Luckhurst said:
>>> Hello All
>>>
>>> I am quite new to pgsql and the Win32 port. I have just tried
>>> Vishal's new guide to building
>>> and I am having what looks like a path problem when I try to
>>> initialise a database. I am using
>>> Windows 2000. Everything builds and installs OK and I have copied the
>>> files in the msys\1.0\local\pgsql
>>> to my c:\pgsql folder as per the instructions. I have added
>>> C:\pgsql\bin and c:\pgsql\lib to my path
>>> as instructed. When I try to run initdb I get the following error
>>>
>>> initdb -D c:\pgsql\data -W --lc-collate=C
>
> The clue is actually in these following 4 lines
>
>>> Bad command or file name
>>> fgets failure: No error
>>> Bad command or file name
>>> fgets failure: No error
>
> For some reason, initdb has found postgres.exe in 2 locations but in
> both cases has been unable to execute it, and consequently unable to
> read in the version string.
>
> That's a bit strange - I have no explanation for it right now.
>
> The relevant code has just been refactored by Bruce as part of the
> relocation stuff.
>
> For now, I still recommend running from the installed path.
>
> cheers
>
> andrew
>
>
>>> The program "postgres" is needed by initdb but was not found in the
>>> directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>>
>>> I would appreciate any clues here as this has me stumped. I don't
>>> understand why is should even be looking in the msys directory.
>>>
>>
>> I haven't had time to read the document referred to, but if it
>> currently recommends that you run from anywhere but the installed path
>> then I disagree with it. When we get relocatable installs, which Bruce
>> is working on, you will be able to move the whole installation around
>> to your heart's content.
>>
>> Have you checked that there is still in fact a
>> C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
>> problem?
>>
>
>
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
Cc: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-16 23:23:39 |
Message-ID: | PHELJBBOGJFPOPJMDHMPEEKAEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hi Andrew
I ran configure with the --without-zlib option
Regards
Richard
-----Original Message-----
From: pgsql-hackers-win32-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
Dunstan
Sent: Sunday, 16 May 2004 8:13 PM
To: pgsql-hackers-win32(at)postgresql(dot)org
Subject: Re: [pgsql-hackers-win32] Runtime Problems
Richard Luckhurst said:
> Hi All
>
> I have just recompiled using the latest snapshot and I am still getting
> exactly the same errors. I still have the compile stuff in msys and the
> copy in c:\pgsql so that explains why it is picking it up twice I
> guess. In any case I still have the error I first asked about last
> week.
What parameters did you run configure with?
cheers
andrew
>
> Regards
>
> Richard
>
> -----Original Message-----
> From: pgsql-hackers-win32-owner(at)postgresql(dot)org
> [mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
> Dunstan
> Sent: Thursday, 13 May 2004 8:54 PM
> To: pgsql-hackers-win32(at)postgresql(dot)org
> Subject: Re: [pgsql-hackers-win32] Runtime Problems
>
>
> I said:
>> Richard Luckhurst said:
>>> Hello All
>>>
>>> I am quite new to pgsql and the Win32 port. I have just tried
>>> Vishal's new guide to building
>>> and I am having what looks like a path problem when I try to
>>> initialise a database. I am using
>>> Windows 2000. Everything builds and installs OK and I have copied the
>>> files in the msys\1.0\local\pgsql
>>> to my c:\pgsql folder as per the instructions. I have added
>>> C:\pgsql\bin and c:\pgsql\lib to my path
>>> as instructed. When I try to run initdb I get the following error
>>>
>>> initdb -D c:\pgsql\data -W --lc-collate=C
>
> The clue is actually in these following 4 lines
>
>>> Bad command or file name
>>> fgets failure: No error
>>> Bad command or file name
>>> fgets failure: No error
>
> For some reason, initdb has found postgres.exe in 2 locations but in
> both cases has been unable to execute it, and consequently unable to
> read in the version string.
>
> That's a bit strange - I have no explanation for it right now.
>
> The relevant code has just been refactored by Bruce as part of the
> relocation stuff.
>
> For now, I still recommend running from the installed path.
>
> cheers
>
> andrew
>
>
>>> The program "postgres" is needed by initdb but was not found in the
>>> directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>>
>>> I would appreciate any clues here as this has me stumped. I don't
>>> understand why is should even be looking in the msys directory.
>>>
>>
>> I haven't had time to read the document referred to, but if it
>> currently recommends that you run from anywhere but the installed path
>> then I disagree with it. When we get relocatable installs, which Bruce
>> is working on, you will be able to move the whole installation around
>> to your heart's content.
>>
>> Have you checked that there is still in fact a
>> C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
>> problem?
>>
>
>
---------------------------(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.762 (20040516) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
From: | Andrew Dunstan <andrew(at)dunslane(dot)net> |
---|---|
To: | Richard Luckhurst <rickl(at)soundadvice(dot)aunz(dot)net> |
Cc: | PGSQL Hackers <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-16 23:41:31 |
Message-ID: | 40A7FC2B.6090800@dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst wrote:
>Hi Andrew
>
>I ran configure with the --without-zlib option
>
What happens if you cd to c:\pgsql and run
bin/initdb -D c:\pgsql\data -W --lc-collate=C
?
cheers
andrew
>
>Regards
>
>Richard
>
>-----Original Message-----
>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>Dunstan
>Sent: Sunday, 16 May 2004 8:13 PM
>To: pgsql-hackers-win32(at)postgresql(dot)org
>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>
>
>Richard Luckhurst said:
>
>
>>Hi All
>>
>>I have just recompiled using the latest snapshot and I am still getting
>>exactly the same errors. I still have the compile stuff in msys and the
>>copy in c:\pgsql so that explains why it is picking it up twice I
>>guess. In any case I still have the error I first asked about last
>>week.
>>
>>
>
>What parameters did you run configure with?
>
>cheers
>
>andrew
>
>
>
>
>>Regards
>>
>>Richard
>>
>>-----Original Message-----
>>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>>Dunstan
>>Sent: Thursday, 13 May 2004 8:54 PM
>>To: pgsql-hackers-win32(at)postgresql(dot)org
>>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>>
>>
>>I said:
>>
>>
>>>Richard Luckhurst said:
>>>
>>>
>>>>Hello All
>>>>
>>>>I am quite new to pgsql and the Win32 port. I have just tried
>>>>Vishal's new guide to building
>>>>and I am having what looks like a path problem when I try to
>>>>initialise a database. I am using
>>>>Windows 2000. Everything builds and installs OK and I have copied the
>>>>files in the msys\1.0\local\pgsql
>>>>to my c:\pgsql folder as per the instructions. I have added
>>>>C:\pgsql\bin and c:\pgsql\lib to my path
>>>>as instructed. When I try to run initdb I get the following error
>>>>
>>>>initdb -D c:\pgsql\data -W --lc-collate=C
>>>>
>>>>
>>The clue is actually in these following 4 lines
>>
>>
>>
>>>>Bad command or file name
>>>>fgets failure: No error
>>>>Bad command or file name
>>>>fgets failure: No error
>>>>
>>>>
>>For some reason, initdb has found postgres.exe in 2 locations but in
>>both cases has been unable to execute it, and consequently unable to
>>read in the version string.
>>
>>That's a bit strange - I have no explanation for it right now.
>>
>>The relevant code has just been refactored by Bruce as part of the
>>relocation stuff.
>>
>>For now, I still recommend running from the installed path.
>>
>>cheers
>>
>>andrew
>>
>>
>>
>>
>>>>The program "postgres" is needed by initdb but was not found in the
>>>>directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>>>
>>>>I would appreciate any clues here as this has me stumped. I don't
>>>>understand why is should even be looking in the msys directory.
>>>>
>>>>
>>>>
>>>I haven't had time to read the document referred to, but if it
>>>currently recommends that you run from anywhere but the installed path
>>>then I disagree with it. When we get relocatable installs, which Bruce
>>>is working on, you will be able to move the whole installation around
>>>to your heart's content.
>>>
>>>Have you checked that there is still in fact a
>>>C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
>>>problem?
>>>
>>>
>>>
>>
>>
>
>
>
>
>---------------------------(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.762 (20040516) Information __________
>
>This message was checked by NOD32 antivirus system.
>http://www.nod32.com
>
>
>
>
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Richard Luckhurst <rickl(at)soundadvice(dot)aunz(dot)net> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, PGSQL Hackers <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 00:07:06 |
Message-ID: | 200405170007.i4H076Y10644@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst wrote:
> Hi Andrew
>
> I ran configure with the --without-zlib option
Should we default to this on Win32?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
Cc: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 00:21:05 |
Message-ID: | PHELJBBOGJFPOPJMDHMPGEKEEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hi Andrew
if I try to just run bin/initdb in the pgsql directory I get the normal
error
that bin is not an executable. If I try the full path c:\pgsql\bin\initdb I
get the same old error.
Regards
Richard
-----Original Message-----
From: Andrew Dunstan [mailto:andrew(at)dunslane(dot)net]
Sent: Monday, 17 May 2004 9:42 AM
To: Richard Luckhurst
Cc: PGSQL Hackers
Subject: Re: [pgsql-hackers-win32] Runtime Problems
Richard Luckhurst wrote:
>Hi Andrew
>
>I ran configure with the --without-zlib option
>
What happens if you cd to c:\pgsql and run
bin/initdb -D c:\pgsql\data -W --lc-collate=C
?
cheers
andrew
>
>Regards
>
>Richard
>
>-----Original Message-----
>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>Dunstan
>Sent: Sunday, 16 May 2004 8:13 PM
>To: pgsql-hackers-win32(at)postgresql(dot)org
>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>
>
>Richard Luckhurst said:
>
>
>>Hi All
>>
>>I have just recompiled using the latest snapshot and I am still getting
>>exactly the same errors. I still have the compile stuff in msys and the
>>copy in c:\pgsql so that explains why it is picking it up twice I
>>guess. In any case I still have the error I first asked about last
>>week.
>>
>>
>
>What parameters did you run configure with?
>
>cheers
>
>andrew
>
>
>
>
>>Regards
>>
>>Richard
>>
>>-----Original Message-----
>>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>>Dunstan
>>Sent: Thursday, 13 May 2004 8:54 PM
>>To: pgsql-hackers-win32(at)postgresql(dot)org
>>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>>
>>
>>I said:
>>
>>
>>>Richard Luckhurst said:
>>>
>>>
>>>>Hello All
>>>>
>>>>I am quite new to pgsql and the Win32 port. I have just tried
>>>>Vishal's new guide to building
>>>>and I am having what looks like a path problem when I try to
>>>>initialise a database. I am using
>>>>Windows 2000. Everything builds and installs OK and I have copied the
>>>>files in the msys\1.0\local\pgsql
>>>>to my c:\pgsql folder as per the instructions. I have added
>>>>C:\pgsql\bin and c:\pgsql\lib to my path
>>>>as instructed. When I try to run initdb I get the following error
>>>>
>>>>initdb -D c:\pgsql\data -W --lc-collate=C
>>>>
>>>>
>>The clue is actually in these following 4 lines
>>
>>
>>
>>>>Bad command or file name
>>>>fgets failure: No error
>>>>Bad command or file name
>>>>fgets failure: No error
>>>>
>>>>
>>For some reason, initdb has found postgres.exe in 2 locations but in
>>both cases has been unable to execute it, and consequently unable to
>>read in the version string.
>>
>>That's a bit strange - I have no explanation for it right now.
>>
>>The relevant code has just been refactored by Bruce as part of the
>>relocation stuff.
>>
>>For now, I still recommend running from the installed path.
>>
>>cheers
>>
>>andrew
>>
>>
>>
>>
>>>>The program "postgres" is needed by initdb but was not found in the
>>>>directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>>>
>>>>I would appreciate any clues here as this has me stumped. I don't
>>>>understand why is should even be looking in the msys directory.
>>>>
>>>>
>>>>
>>>I haven't had time to read the document referred to, but if it
>>>currently recommends that you run from anywhere but the installed path
>>>then I disagree with it. When we get relocatable installs, which Bruce
>>>is working on, you will be able to move the whole installation around
>>>to your heart's content.
>>>
>>>Have you checked that there is still in fact a
>>>C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
>>>problem?
>>>
>>>
>>>
>>
>>
>
>
>
>
>---------------------------(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.762 (20040516) Information __________
>
>This message was checked by NOD32 antivirus system.
>http://www.nod32.com
>
>
>
>
__________ NOD32 1.762 (20040516) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | <rickl(at)soundadvice(dot)aunz(dot)net> |
Cc: | <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 02:31:50 |
Message-ID: | 1462.24.211.141.25.1084761110.squirrel@www.dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst said:
> Hi Andrew
>
> if I try to just run bin/initdb in the pgsql directory I get the normal
> error
sorry - of course I meant
bin\initdb -D c:\pgsql\data -W --lc-collate=C
> that bin is not an executable. If I try the full path
> c:\pgsql\bin\initdb I get the same old error.
>
> Regards
>
> Richard
>
> -----Original Message-----
> From: Andrew Dunstan [mailto:andrew(at)dunslane(dot)net]
> Sent: Monday, 17 May 2004 9:42 AM
> To: Richard Luckhurst
> Cc: PGSQL Hackers
> Subject: Re: [pgsql-hackers-win32] Runtime Problems
>
>
>
>
> Richard Luckhurst wrote:
>
>>Hi Andrew
>>
>>I ran configure with the --without-zlib option
>>
>
> What happens if you cd to c:\pgsql and run
>
> bin/initdb -D c:\pgsql\data -W --lc-collate=C
>
> ?
>
> cheers
>
> andrew
>
>
>>
>>Regards
>>
>>Richard
>>
>>-----Original Message-----
>>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>>Dunstan
>>Sent: Sunday, 16 May 2004 8:13 PM
>>To: pgsql-hackers-win32(at)postgresql(dot)org
>>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>>
>>
>>Richard Luckhurst said:
>>
>>
>>>Hi All
>>>
>>>I have just recompiled using the latest snapshot and I am still
>>>getting exactly the same errors. I still have the compile stuff in
>>>msys and the copy in c:\pgsql so that explains why it is picking it up
>>>twice I guess. In any case I still have the error I first asked about
>>>last week.
>>>
>>>
>>
>>What parameters did you run configure with?
>>
>>cheers
>>
>>andrew
>>
>>
>>
>>
>>>Regards
>>>
>>>Richard
>>>
>>>-----Original Message-----
>>>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>>>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>>>Dunstan
>>>Sent: Thursday, 13 May 2004 8:54 PM
>>>To: pgsql-hackers-win32(at)postgresql(dot)org
>>>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>>>
>>>
>>>I said:
>>>
>>>
>>>>Richard Luckhurst said:
>>>>
>>>>
>>>>>Hello All
>>>>>
>>>>>I am quite new to pgsql and the Win32 port. I have just tried
>>>>>Vishal's new guide to building
>>>>>and I am having what looks like a path problem when I try to
>>>>>initialise a database. I am using
>>>>>Windows 2000. Everything builds and installs OK and I have copied
>>>>>the files in the msys\1.0\local\pgsql
>>>>>to my c:\pgsql folder as per the instructions. I have added
>>>>>C:\pgsql\bin and c:\pgsql\lib to my path
>>>>>as instructed. When I try to run initdb I get the following error
>>>>>
>>>>>initdb -D c:\pgsql\data -W --lc-collate=C
>>>>>
>>>>>
>>>The clue is actually in these following 4 lines
>>>
>>>
>>>
>>>>>Bad command or file name
>>>>>fgets failure: No error
>>>>>Bad command or file name
>>>>>fgets failure: No error
>>>>>
>>>>>
>>>For some reason, initdb has found postgres.exe in 2 locations but in
>>>both cases has been unable to execute it, and consequently unable to
>>>read in the version string.
>>>
>>>That's a bit strange - I have no explanation for it right now.
>>>
>>>The relevant code has just been refactored by Bruce as part of the
>>>relocation stuff.
>>>
>>>For now, I still recommend running from the installed path.
>>>
>>>cheers
>>>
>>>andrew
>>>
>>>
>>>
>>>
>>>>>The program "postgres" is needed by initdb but was not found in the
>>>>>directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>>>>
>>>>>I would appreciate any clues here as this has me stumped. I don't
>>>>>understand why is should even be looking in the msys directory.
>>>>>
>>>>>
>>>>>
>>>>I haven't had time to read the document referred to, but if it
>>>>currently recommends that you run from anywhere but the installed
>>>>path then I disagree with it. When we get relocatable installs, which
>>>>Bruce is working on, you will be able to move the whole installation
>>>>around to your heart's content.
>>>>
>>>>Have you checked that there is still in fact a
>>>>C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
>>>>problem?
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>>---------------------------(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.762 (20040516) Information __________
>>
>>This message was checked by NOD32 antivirus system.
>>http://www.nod32.com
>>
>>
>>
>>
>
>
>
> __________ NOD32 1.762 (20040516) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.nod32.com
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
Cc: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 02:40:42 |
Message-ID: | PHELJBBOGJFPOPJMDHMPIEKGEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hi Andrew
I get the same old fgets error.
Regards
Richard
-----Original Message-----
From: Andrew Dunstan [mailto:andrew(at)dunslane(dot)net]
Sent: Monday, 17 May 2004 12:32 PM
To: rickl(at)soundadvice(dot)aunz(dot)net
Cc: pgsql-hackers-win32(at)postgresql(dot)org
Subject: RE: [pgsql-hackers-win32] Runtime Problems
Richard Luckhurst said:
> Hi Andrew
>
> if I try to just run bin/initdb in the pgsql directory I get the normal
> error
sorry - of course I meant
bin\initdb -D c:\pgsql\data -W --lc-collate=C
> that bin is not an executable. If I try the full path
> c:\pgsql\bin\initdb I get the same old error.
>
> Regards
>
> Richard
>
> -----Original Message-----
> From: Andrew Dunstan [mailto:andrew(at)dunslane(dot)net]
> Sent: Monday, 17 May 2004 9:42 AM
> To: Richard Luckhurst
> Cc: PGSQL Hackers
> Subject: Re: [pgsql-hackers-win32] Runtime Problems
>
>
>
>
> Richard Luckhurst wrote:
>
>>Hi Andrew
>>
>>I ran configure with the --without-zlib option
>>
>
> What happens if you cd to c:\pgsql and run
>
> bin/initdb -D c:\pgsql\data -W --lc-collate=C
>
> ?
>
> cheers
>
> andrew
>
>
>>
>>Regards
>>
>>Richard
>>
>>-----Original Message-----
>>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>>Dunstan
>>Sent: Sunday, 16 May 2004 8:13 PM
>>To: pgsql-hackers-win32(at)postgresql(dot)org
>>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>>
>>
>>Richard Luckhurst said:
>>
>>
>>>Hi All
>>>
>>>I have just recompiled using the latest snapshot and I am still
>>>getting exactly the same errors. I still have the compile stuff in
>>>msys and the copy in c:\pgsql so that explains why it is picking it up
>>>twice I guess. In any case I still have the error I first asked about
>>>last week.
>>>
>>>
>>
>>What parameters did you run configure with?
>>
>>cheers
>>
>>andrew
>>
>>
>>
>>
>>>Regards
>>>
>>>Richard
>>>
>>>-----Original Message-----
>>>From: pgsql-hackers-win32-owner(at)postgresql(dot)org
>>>[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Andrew
>>>Dunstan
>>>Sent: Thursday, 13 May 2004 8:54 PM
>>>To: pgsql-hackers-win32(at)postgresql(dot)org
>>>Subject: Re: [pgsql-hackers-win32] Runtime Problems
>>>
>>>
>>>I said:
>>>
>>>
>>>>Richard Luckhurst said:
>>>>
>>>>
>>>>>Hello All
>>>>>
>>>>>I am quite new to pgsql and the Win32 port. I have just tried
>>>>>Vishal's new guide to building
>>>>>and I am having what looks like a path problem when I try to
>>>>>initialise a database. I am using
>>>>>Windows 2000. Everything builds and installs OK and I have copied
>>>>>the files in the msys\1.0\local\pgsql
>>>>>to my c:\pgsql folder as per the instructions. I have added
>>>>>C:\pgsql\bin and c:\pgsql\lib to my path
>>>>>as instructed. When I try to run initdb I get the following error
>>>>>
>>>>>initdb -D c:\pgsql\data -W --lc-collate=C
>>>>>
>>>>>
>>>The clue is actually in these following 4 lines
>>>
>>>
>>>
>>>>>Bad command or file name
>>>>>fgets failure: No error
>>>>>Bad command or file name
>>>>>fgets failure: No error
>>>>>
>>>>>
>>>For some reason, initdb has found postgres.exe in 2 locations but in
>>>both cases has been unable to execute it, and consequently unable to
>>>read in the version string.
>>>
>>>That's a bit strange - I have no explanation for it right now.
>>>
>>>The relevant code has just been refactored by Bruce as part of the
>>>relocation stuff.
>>>
>>>For now, I still recommend running from the installed path.
>>>
>>>cheers
>>>
>>>andrew
>>>
>>>
>>>
>>>
>>>>>The program "postgres" is needed by initdb but was not found in the
>>>>>directory "C:/msys/1.0/local/pgsql/bin". Check your installation
>>>>>
>>>>>I would appreciate any clues here as this has me stumped. I don't
>>>>>understand why is should even be looking in the msys directory.
>>>>>
>>>>>
>>>>>
>>>>I haven't had time to read the document referred to, but if it
>>>>currently recommends that you run from anywhere but the installed
>>>>path then I disagree with it. When we get relocatable installs, which
>>>>Bruce is working on, you will be able to move the whole installation
>>>>around to your heart's content.
>>>>
>>>>Have you checked that there is still in fact a
>>>>C:/msys/1.0/local/pgsql/bin/postgres.exe? Could it be a permissions
>>>>problem?
>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>>
>>
>>---------------------------(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.762 (20040516) Information __________
>>
>>This message was checked by NOD32 antivirus system.
>>http://www.nod32.com
>>
>>
>>
>>
>
>
>
> __________ NOD32 1.762 (20040516) Information __________
>
> This message was checked by NOD32 antivirus system.
> http://www.nod32.com
__________ NOD32 1.762 (20040516) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Richard Luckhurst <rickl(at)soundadvice(dot)aunz(dot)net> |
Cc: | Andrew Dunstan <andrew(at)dunslane(dot)net>, PGSQL Hackers <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 03:53:59 |
Message-ID: | 200405170353.i4H3rxX02009@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst wrote:
> Hi Andrew
>
> I get the same old fgets error.
That error is from a copy of CVS that is perhaps a few weeks old:
>>>>>Bad command or file name
>>>>>fgets failure: No error
>>>>>Bad command or file name
>>>>>fgets failure: No error
I have fixed it and it shouldn't appear in current CVS.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | "Richard Luckhurst" <rickl(at)soundadvice(dot)aunz(dot)net> |
---|---|
To: | "Bruce Momjian" <pgman(at)candle(dot)pha(dot)pa(dot)us> |
Cc: | "PGSQL Hackers" <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 04:28:52 |
Message-ID: | PHELJBBOGJFPOPJMDHMPEEKJEPAA.rickl@soundadvice.aunz.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Hi Bruce
I am working from a snapshot only 2 days old. Is the snapshot no good?
Regards
Richard
-----Original Message-----
From: pgsql-hackers-win32-owner(at)postgresql(dot)org
[mailto:pgsql-hackers-win32-owner(at)postgresql(dot)org]On Behalf Of Bruce
Momjian
Sent: Monday, 17 May 2004 1:54 PM
To: Richard Luckhurst
Cc: Andrew Dunstan; PGSQL Hackers
Subject: Re: [pgsql-hackers-win32] Runtime Problems
Richard Luckhurst wrote:
> Hi Andrew
>
> I get the same old fgets error.
That error is from a copy of CVS that is perhaps a few weeks old:
>>>>>Bad command or file name
>>>>>fgets failure: No error
>>>>>Bad command or file name
>>>>>fgets failure: No error
I have fixed it and it shouldn't appear in current CVS.
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)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 5: Have you checked our extensive FAQ?
http://www.postgresql.org/docs/faqs/FAQ.html
__________ NOD32 1.762 (20040516) Information __________
This message was checked by NOD32 antivirus system.
http://www.nod32.com
From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Richard Luckhurst <rickl(at)soundadvice(dot)aunz(dot)net> |
Cc: | PGSQL Hackers <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 04:33:28 |
Message-ID: | 200405170433.i4H4XSX15061@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Richard Luckhurst wrote:
> Hi Bruce
>
> I am working from a snapshot only 2 days old. Is the snapshot no good?
That new, huh? It should be fine. I assume the errors are coming from
src/port/exec.c. Can you add some printf's in there to see where it is
failing?
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073
From: | "Andrew Dunstan" <andrew(at)dunslane(dot)net> |
---|---|
To: | <rickl(at)soundadvice(dot)aunz(dot)net>, <pgsql-hackers-win32(at)postgresql(dot)org> |
Subject: | Re: Runtime Problems |
Date: | 2004-05-17 12:09:14 |
Message-ID: | 1666.24.211.141.25.1084795754.squirrel@www.dunslane.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers-win32 |
Bruce Momjian said:
> Richard Luckhurst wrote:
>> Hi Bruce
>>
>> I am working from a snapshot only 2 days old. Is the snapshot no good?
>
> That new, huh? It should be fine. I assume the errors are coming from
> src/port/exec.c. Can you add some printf's in there to see where it is
> failing?
>
In particular, we need to see the command line that is being passed to
popen() - that's apparently where it is failing.
cheers
andrew