in reply to Installing DBD::Pg on Windows XP Pro 32b

install_driver(Pg) failed: Can't load 'C:/Program Files/Perl/site/lib/auto/DBD/Pg/Pg.dll' for module DBD::Pg: load_file:The specified module could not be found at C:/Program Files/Perl/lib/DynaLoader.pm line 201.
at (eval 8) line 3


The Pg.dll mentioned in the error message can't load because it needs another dll (probably the PostgreSQL dll), and it can't find that dll.
The solution could be as simple as adding the location of that dll to the path.

Often, such error messages are accompanied by a pop-up that tells you the name of the dll that can't be found. Did you get such a pop-up box ?

Cheers,
Rob
  • Comment on Re: Installing DBD::Pg on Windows XP Pro 32b

Replies are listed 'Best First'.
Re^2: Installing DBD::Pg on Windows XP Pro 32b
by deMize (Monk) on Sep 06, 2009 at 17:06 UTC
    I didn't get any pop-up during the install. I used ActiveState's PPM to install it, and it said it completed successful.

    The error was produced when I ran my cgi script, calling DBI->connect()

    In ~\site\lib\auto\DBD\Pg there is:
    .packlist Pg.bs Pg.dll Pg.exp Pg.lib Pg.pdb
    I've added the following libraries to the post-following directories:
    comerr32.dll gssapi32.dll k5sprt32.dll krb5_32.dll libeay32.dll libiconv2.dll libintl3.dll libpq.dll ssleay32.dll
    Directories:
    c:\Windows c:\Windows\System32 c:\Program Files\PostgreSQL\8.4\bin c:\Program Files\Perl\site\lib\auto\DBD\Pg


    I tried looking into DynaLoader, but didn't traverse it that well -- hoping someone else already had this problem (and a solution).