I am having a helluva time trying to use GDBM_File.pm. I am using Ubuntu Linux. Perl 5.8.7 came with the system, and GDBM_File came with that:

[t] 512 $ find /usr/lib/perl/5.8.7 -name '*GDBM_File*' /usr/lib/perl/5.8.7/GDBM_File.pm /usr/lib/perl/5.8.7/auto/GDBM_File /usr/lib/perl/5.8.7/auto/GDBM_File/GDBM_File.so /usr/lib/perl/5.8.7/auto/GDBM_File/GDBM_File.bs

Almost as soon as I started working with this system, I upgraded to Perl 5.8.8, building from source. Today, for the first time, I needed to use GDBM_File.pm in a job. Whenever I try to use it, I get this failure message:

[t] 508 $ perl -MGDBM_File -e 'print "Hello world\n";' Can't locate GDBM_File.pm in @INC (@INC contains: /home/jimk/lib/perl +/usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8 /usr +/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site +_perl/5.8.8 /usr/local/lib/perl5/site_perl .). BEGIN failed--compilation aborted.

When I include the vendor's Perl path, I get a different error message:

[t] 511 $ perl -I/usr/lib/perl/5.8.7 -MGDBM_File -e 'print "Hello worl +d\n";' Can't load '/usr/lib/perl/5.8.7/auto/GDBM_File/GDBM_File.so' for modul +e GDBM_File: /usr/lib/perl/5.8.7/auto/GDBM_File/GDBM_File.so: undefin +ed symbol: Perl_croak_nocontext at /usr/lib/perl/5.8.7/XSLoader.pm li +ne 68. at /usr/lib/perl/5.8.7/GDBM_File.pm line 83 Compilation failed in require. BEGIN failed--compilation aborted.

With the help of an experienced Perl hacker, I have rebuilt Perl 5.8.8 three times today -- to no avail. The GDBM_File-related files seem simply to get trashed:

[t] 514 $ find ~/.Trash/perl-5.8.8/ -name '*GDBM_File*' /home/jimk/.Trash/perl-5.8.8/ext/GDBM_File /home/jimk/.Trash/perl-5.8.8/ext/GDBM_File/GDBM_File.pm /home/jimk/.Trash/perl-5.8.8/ext/GDBM_File/GDBM_File.xs

Also, while watching the steps in the installation process scroll by, it seemed that when it was going through the ext/ directory, it was skipping from 'F' (as in File) to 'I' (as in IO) without touching on any files beginning with 'G'.

Does anyone know what's going wrong? TIA.

Jim Keenan

In reply to Can't Install/Use GDBM_File.pm by jkeenan1

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.