Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

A recent rebuild after a crash left me with the following combination of software:

a 32 bit apache
a 64 bit perl
a bunch of 32 bit authentication gdbm files

the 64 bit perl, and all the code to maintain the gdbm files including user and group names and password crypts, does not read the 32 bit dbm files.

short of installing a 32 bit perl, is there anything I can do to make a 64 bit perl read a 32 bit gdbm database?

Replies are listed 'Best First'.
Re: 32bit DBM files and a 64 bit perl.
by BrowserUk (Patriarch) on Apr 23, 2012 at 18:30 UTC

    In general, you cannot call 32-bit code from 64-bit executables.

    You'll almost certainly need to (at least temporarily) install a 32-bit version of Perl (or perhaps a 32-bit compiled utility gdbmexport) so that you can export the db into its portable flat file format and then import it into a 64-bit compatible GDBM file.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    The start of some sanity?

Re: 32bit DBM files and a 64 bit perl.
by locked_user sundialsvc4 (Abbot) on Apr 24, 2012 at 13:27 UTC

    AFAIK, the file format did not change.   But you can’t mix apples and oranges.   You need to get and to install, or build, 64-bit versions of these modules ... or install a 32-bit Perl interpreter, which by the way you can do alongside what you already have without utterly replacing it.   (It will need its own 32-bit CPAN library etc.)