Pg for Windows: need help!

"Сергей Хомицкий" <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>
Hi. Help me, please with Pg for Windows:

1. WinXP SP2
2. Perl:

This is perl, v5.8.8 built for MSWin32-x86-multi-thread
(with 33 registered patches, see perl -V for more detail)

Copyright 1987-2006, Larry Wall

Binary build 819 [267479] provided by ActiveState http://www.ActiveState.com
Built Aug 29 2006 12:42:41

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl".  If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

3. PostgreSQL:

postgres (PostgreSQL) 8.2.1

4. Pg install as:

ppm install http://dbdpgppm.projects.postgresql.org/DBD-Pg-5.8s.ppd

5. ppm list is:

C:\>ppm list
&#9484;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9516;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9488;
&#9474; name                     &#9474; version    &#9474; files &#9474; size     &#9474; area &#9474;
&#9500;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9532;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9508;
&#9474; ActivePerl-Config        &#9474; 1.0        &#9474;     2 &#9474;    11 KB &#9474; perl &#9474;
&#9474; ActivePerl-DocTools      &#9474; 2.0        &#9474;    13 &#9474;    63 KB &#9474; perl &#9474;
&#9474; ActivePerl-PPM           &#9474; 4.0        &#9474;    63 &#9474;   545 KB &#9474; perl &#9474;
&#9474; ActiveState-RelocateTree &#9474; 1.3        &#9474;     4 &#9474;    29 KB &#9474; perl &#9474;
&#9474; ActiveState-Scineplex    &#9474; 1.0        &#9474;     6 &#9474;    77 KB &#9474; perl &#9474;
&#9474; ActiveState-Utils        &#9474; 2.1        &#9474;    21 &#9474;   106 KB &#9474; perl &#9474;
&#9474; Archive-Tar              &#9474; 1.30-r1    &#9474;     8 &#9474;    82 KB &#9474; perl &#9474;
&#9474; Archive-Zip              &#9474; 1.16       &#9474;    10 &#9474;   154 KB &#9474; perl &#9474;
&#9474; Compress-Zlib            &#9474; 1.42       &#9474;     7 &#9474;   121 KB &#9474; perl &#9474;
&#9474; DBD-Pg                   &#9474; 1.49       &#9474;    10 &#9474;  1958 KB &#9474; site &#9474;
&#9474; DBD-PgPP                 &#9474; 0.05       &#9474;     5 &#9474;    61 KB &#9474; site &#9474;
&#9474; DBD-SQLite               &#9474; 1.12       &#9474;     6 &#9474;   288 KB &#9474; perl &#9474;
&#9474; DBD-mysql                &#9474; 3.0002     &#9474;    15 &#9474;  1296 KB &#9474; site &#9474;
&#9474; DBI                      &#9474; 1.52       &#9474;    44 &#9474;  1179 KB &#9474; perl &#9474;
&#9474; Data-Dump                &#9474; 1.06       &#9474;     2 &#9474;    14 KB &#9474; perl &#9474;
&#9474; Digest-HMAC              &#9474; 1.01       &#9474;     4 &#9474;     5 KB &#9474; perl &#9474;
&#9474; Digest-MD2               &#9474; 2.03       &#9474;     6 &#9474;    29 KB &#9474; perl &#9474;
&#9474; Digest-MD4               &#9474; 1.5-r1     &#9474;     6 &#9474;    38 KB &#9474; perl &#9474;
&#9474; Digest-SHA1              &#9474; 2.11       &#9474;     6 &#9474;    38 KB &#9474; perl &#9474;
&#9474; File-CounterFile         &#9474; 1.04       &#9474;     2 &#9474;     6 KB &#9474; perl &#9474;
&#9474; Font-AFM                 &#9474; 1.19       &#9474;    14 &#9474;    38 KB &#9474; perl &#9474;
&#9474; GD                       &#9474; 2.35       &#9474;    20 &#9474;  1181 KB &#9474; site &#9474;
&#9474; HTML-Parser              &#9474; 3.55       &#9474;    12 &#9474;   129 KB &#9474; perl &#9474;
&#9474; HTML-Tagset              &#9474; 3.10       &#9474;     2 &#9474;    13 KB &#9474; perl &#9474;
&#9474; HTML-Tree                &#9474; 3.20       &#9474;    10 &#9474;   314 KB &#9474; perl &#9474;
&#9474; IO-String                &#9474; 1.08       &#9474;     2 &#9474;    12 KB &#9474; perl &#9474;
&#9474; IO-Zlib                  &#9474; 1.04       &#9474;     2 &#9474;    16 KB &#9474; perl &#9474;
&#9474; LWP                      &#9474; 5.805-r1   &#9474;    69 &#9474;   657 KB &#9474; perl &#9474;
&#9474; MD5                      &#9474; 2.03       &#9474;     2 &#9474;     1 KB &#9474; perl &#9474;
&#9474; MIME-Base64-Scripts      &#9474; 1.00       &#9474;     9 &#9474;     3 KB &#9474; perl &#9474;
&#9474; Math-BigInt-FastCalc     &#9474; 0.10       &#9474;     6 &#9474;    31 KB &#9474; perl &#9474;
&#9474; Perl                     &#9474; 5.8.8.819  &#9474;  1529 &#9474; 24138 KB &#9474; perl &#9474;
&#9474; SOAP-Lite                &#9474; 0.55-r1    &#9474;    29 &#9474;   332 KB &#9474; perl &#9474;
&#9474; Tcl                      &#9474; 0.89-r2    &#9474;     8 &#9474;  2371 KB &#9474; perl &#9474;
&#9474; Term-ReadKey             &#9474; 2.30       &#9474;     7 &#9474;    48 KB &#9474; perl &#9474;
&#9474; Term-ReadLine-Perl       &#9474; 1.0302-r1  &#9474;     3 &#9474;   139 KB &#9474; perl &#9474;
&#9474; Text-Autoformat          &#9474; 1.13       &#9474;     2 &#9474;    43 KB &#9474; perl &#9474;
&#9474; Text-Reform              &#9474; 1.11       &#9474;     7 &#9474;    60 KB &#9474; perl &#9474;
&#9474; Tk                       &#9474; 804.027-r6 &#9474;   693 &#9474;  5988 KB &#9474; perl &#9474;
&#9474; Tkx                      &#9474; 1.04       &#9474;     9 &#9474;    68 KB &#9474; perl &#9474;
&#9474; URI                      &#9474; 1.35       &#9474;    50 &#9474;   116 KB &#9474; perl &#9474;
&#9474; Unicode-String           &#9474; 2.09       &#9474;     7 &#9474;   601 KB &#9474; perl &#9474;
&#9474; Win32-AuthenticateUser   &#9474; 0.02       &#9474;     7 &#9474;    26 KB &#9474; perl &#9474;
&#9474; XML-Parser               &#9474; 2.34-r1    &#9474;    32 &#9474;   483 KB &#9474; perl &#9474;
&#9474; XML-Simple               &#9474; 2.14       &#9474;     3 &#9474;   111 KB &#9474; perl &#9474;
&#9474; libwin32                 &#9474; 0.26-r3    &#9474;   154 &#9474;  2180 KB &#9474; perl &#9474;
&#9492;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9524;&#9472;&#9472;&#9472;&#9472;&#9472;&#9472;&#9496;
 (46 packages installed)

6. DBI drivers is:

install_driver(CX) failed: Can't locate DBD/CX.pm in @INC (@INC contains: D:/USR/site/lib D:/USR/lib .) at (eval 5) line 3.
Perhaps the DBD::CX perl module hasn't been fully installed,
or perhaps the capitalisation of 'CX' isn't right.
Available drivers: DBM, ExampleP, File, Pg, PgPP, Proxy, SQLite, Sponge, mysql.

=================

SO, when I start testing script, I see next:

Software error:
install_driver(Pg) failed: Can't load 'D:/USR/site/lib/auto/DBD/Pg/Pg.dll' for module DBD::Pg: load_file:Не найден указанный модуль at D:/USR/lib/DynaLoader.pm line 230.
 at (eval 5) line 3
Compilation failed in require at (eval 5) line 3.
Perhaps a required shared library or dll isn't installed where expected

But file "D:/USR/site/lib/auto/DBD/Pg/Pg.dll" EXIST:

D:\USR\site\lib\auto\DBD\Pg>dir
 Том в устройстве D имеет метку DATA
 Серийный номер тома: 4CEF-E6FC

 Содержимое папки D:\USR\site\lib\auto\DBD\Pg

16.02.2008  12:39    <DIR>          .
16.02.2008  12:39    <DIR>          ..
16.02.2008  12:39               324 .packlist
16.02.2008  12:39         1В 036В 288 libeay32.dll
16.02.2008  12:39                 0 Pg.bs
16.02.2008  12:39           159В 744 Pg.dll
16.02.2008  12:39               752 Pg.exp
16.02.2008  12:39             1В 854 Pg.lib
16.02.2008  12:39           371В 712 Pg.pdb
16.02.2008  12:39           196В 608 ssleay32.dll
               8 файлов      1 767 282 байт
               2 папок  19 979 456 512 байт свободно

What can I do to work with PostgreSQL via Perl? DBD:PgPP have so much errors!
Now I use MySQL - no problems! But I want use PostgreSQL, as I use at my work (with FreeBSD).

Help me with this bugs, pls.!

Thank's and regardes,
Serge Khomitsky
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.