#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2009
    Posts
    59
    Rep Power
    5

    Problem interpreting CPAN error message


    I'm trying to install the component DBD::Pg on a SuSE machine via CPAN, and I'm getting an error message I'm having a tough time trying to interpret.

    Error Message:
    Code:
    Error:  Can't load '/root/.cpan/build/DBD-Pg-2.19.3/blib/arch/auto/DBD/Pg/Pg.so' for module DBD::Pg: /root/.cpan/build/DBD-Pg-2.19.3/blib/arch/auto/DBD/Pg/Pg.so: undefined symbol: lo_import_with_oid at /usr/lib/perl5/5.8.1/i586-linux-thread-multi/DynaLoader.pm line 229.
    I've tried tracking it down online, but the closest thing I've been able to come up with was a reference in the DBD::Pg readme file indicating a similar error message. In that case, the solution was to include the library paths directly, in the ld.so.conf file. I did so (including running ldconfig afterwards), but I'm still getting this message. Beyond that, while I'm seeing a few bug reports online with the 'undefined symbol: lo_import_with_oid' portion of the error message, I'm having trouble finding anything on it that appears to have been resolved.

    Would anyone here be willing to help me figure out what it is I'm missing about this error message, and where to turn next in figuring it out and resolving the situation?
  2. #2
  3. !~ /m$/
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    May 2004
    Location
    Reno, NV
    Posts
    4,252
    Rep Power
    1810
    What version of PostgreSQL is installed on that machine?
  4. #3
  5. !~ /m$/
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    May 2004
    Location
    Reno, NV
    Posts
    4,252
    Rep Power
    1810
    Well, anyway.

    The lo_import_with_oid feature was added at PostgreSQL 8.4, so if you have a version older than that, it isn't supported.

    But I believe the intent was that DBD::Pg would still compile and install to older versions, but there is a current bug:

    https://rt.cpan.org/Public/Bug/Display.html?id=79551

    You could possibly install an older version of DBD::Pg, or upgrade Postgres.

    Comments on this post

    • EnderX agrees : Quick and useful assistance, I appreciated it.
  6. #4
  7. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2009
    Posts
    59
    Rep Power
    5
    keath, thanks for the assistance. Your advice helped me to track down an older version of the module to install, which did install successfully and permit me to run at least one of the programs I was working on. (Haven't tried all of them yet.)

    I appreciate the help.

IMN logo majestic logo threadwatch logo seochat tools logo