[PLUG] A Perl Issue -- RESOLVED!

Rich Shepard rshepard at appl-ecosys.com
Thu Jun 19 13:29:14 UTC 2008


On Wed, 18 Jun 2008, Eric Wilhelm wrote:

> The one in Bundle/ is actually Bundle::DBD::Pg -- a totally different
> module, so the size difference is to be expected.

Eric,

   I see. As root, I ran 'perl -MCPAN -e shell;' then asked it to install
DBD::Pg. More on this below.

>  cd /tmp/ # because . might be in @INC
>  find $(perl -e 'print "$_\n" for(@INC)') -iname Pg.so

/usr/lib/perl5/site_perl/5.8.8/i486-linux/auto/DBD/Pg/Pg.so
/usr/lib/perl5/site_perl/5.8.8/i486-linux/auto/DBD/Pg/Pg.so
/usr/lib/perl5/site_perl/5.8.8/i486-linux/auto/DBD/Pg/Pg.so

>  find $(perl -e 'print "$_\n" for(@INC)') -iname Pg.pm

/usr/lib/perl5/site_perl/5.8.8/i486-linux/DBD/Pg.pm
/usr/lib/perl5/site_perl/5.8.8/i486-linux/Bundle/DBD/Pg.pm
/usr/lib/perl5/site_perl/5.8.8/i486-linux/DBD/Pg.pm
/usr/lib/perl5/site_perl/5.8.8/i486-linux/Bundle/DBD/Pg.pm
/usr/lib/perl5/site_perl/5.8.8/i486-linux/DBD/Pg.pm
/usr/lib/perl5/site_perl/5.8.8/i486-linux/Bundle/DBD/Pg.pm

> If you installed it with the cpan client, it should have passed the
> tests - so presumably it built correctly.  If you didn't get any error
> messages during the install, I have to guess that the .pm and .so got
> into the wrong locations or something.

> If it didn't pass the tests before the install, well...

   Now this is the really interesting part. Yesterday's first attempt threw
errors and suggested that I force the installation. I did. That's when I
discovered the server errors while trying to log in to SQL-Ledger.

   This morning I removed
/usr/lib/perl5/site_perl/5.8.8/i486-linux/DBD/Pg.pm, and re-ran the CPAN
client. The response was that the module was up to date, so I ran it again
with the 'force' option ... with much better results!

"All tests successful, 3 tests and 15 subtests skipped."

   And I can now successfully log in to SL.

   The initial installation was apparently broken, and removing the Pg.pm and
forcing a re-compilation of the source did the trick.

   Thank you very much for making your expertise available to me. I learned a
lot, and was guided to the solution.

Much appreciated,

Rich

-- 
Richard B. Shepard, Ph.D.               |  Integrity            Credibility
Applied Ecosystem Services, Inc.        |            Innovation
<http://www.appl-ecosys.com>     Voice: 503-667-4517      Fax: 503-667-8863



More information about the PLUG mailing list