Bad initdb output: 'initdb'

[email protected] (Brian FCC via dbd-pg) Mon, 28 Mar 2022 19:35:45 +0000 (UTC)
Newsgroups perl.dbd.pg
Message-ID <[email protected]>
------=_Part_863581_1951907950.1648496145858
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,
This is my first submission to this site, so apologies if I'm going about t=
his the wrong way and please do let me know the preferred way.

My work has a PostgreSQL server that I connect to from my development deskt=
op computer via Perl scripts and PgAdmin 4.=C2=A0 This development computer=
 is a 64-bit Windows 10 CPU.=C2=A0
I installed Strawberry Perl in 2015 and then the necessary CPAN modules nee=
ded for my various apps. =C2=A0
=C2=A0
I have upgraded Strawberry perl and the CPAN modules on a regular basis sin=
ce 2015.=C2=A0 I have never had PostgreSQL installed on my development comp=
uter.=C2=A0 Nor have I ever set the DBI_* environment variables.=C2=A0 The =
CPAN install of DBD::Pg always worked seamlessly until last week when I beg=
an getting a 'initdb' error.=C2=A0 Here are the specifics:
=C2=A0
=C2=A0# DBI=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 Version 1.643
=C2=A0# DBD::Pg=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Version 3.15.1
=C2=A0# Perl=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
 Version 5.30.2
=C2=A0# OS=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A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2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 initdb
=C2=A0# Error was: Bad initdb output: 'initdb' is not recognized as an inte=
rnal or external command,
=C2=A0# operable program or batch file.


Is there a reason the 'initdb' error is appearing now after nearly 7 years?=
=C2=A0 Do I need to install PostgreSQL on my development computer just to g=
et past this error?=C2=A0 Thinking that there may be a bug in the current v=
ersion of Strawberry Perl or the CPAN modules, I installed a prior version =
of them all and am still getting the 'initdb' error.

Many thanks in advance for any information about this issue.

Brian



------=_Part_863581_1951907950.1648496145858
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<html><head></head><body><div class=3D"yahoo-style-wrap" style=3D"font-fami=
ly:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div dir=
=3D"ltr" data-setdir=3D"false"><div dir=3D"ltr" data-setdir=3D"false"><div>=
Hello,</div><div><br></div><div dir=3D"ltr" data-setdir=3D"false">This is m=
y first submission to this site, so apologies if I'm going about this the w=
rong way and please do let me know the preferred way.<br></div><div><br></d=
iv><div>My work has a PostgreSQL server that I connect to from my developme=
nt desktop computer via Perl scripts and PgAdmin 4.&nbsp; This development =
computer is a 64-bit Windows 10 CPU.</div>&nbsp;<br>I installed Strawberry =
Perl in 2015 and then the necessary CPAN modules needed for my various apps=
. &nbsp;<br>&nbsp;<br>I have upgraded Strawberry perl and the CPAN modules =
on a regular basis since 2015.&nbsp; I have never had PostgreSQL installed =
on my development computer.&nbsp; Nor have I ever set the DBI_* environment=
 variables.&nbsp; The CPAN install of DBD::Pg always worked seamlessly unti=
l last week when I began getting a 'initdb' error.&nbsp; Here are the speci=
fics:<br>&nbsp;<br>&nbsp;# DBI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs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nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fte_MyName<br>&nbsp;# T=
est schema&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dbd_pg_testschema<br>&nbsp;# LANG&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C<br>&nbsp;# Adjusted=
:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; initdb<br>&nbsp;# Error was: Bad initdb =
output: 'initdb' is not recognized as an internal or external command,<br>&=
nbsp;# operable program or batch file.<br><br><br>Is there a reason the 'in=
itdb' error is appearing now after nearly 7 years?&nbsp; Do I need to insta=
ll PostgreSQL on my development computer just to get past this error?&nbsp;=
 Thinking that there may be a bug in the current version of Strawberry Perl=
 or the CPAN modules, I installed a prior version of them all and am still =
getting the 'initdb' error.<br><br>Many thanks in advance for any informati=
on about this issue.<br><br>Brian<br><br></div><div><br></div></div></div><=
/body></html>
------=_Part_863581_1951907950.1648496145858--