http://www.perlmonks.org?node_id=1051553


in reply to Installing 32 BIT DBI and DBD

Hi Kevbot, xxxxx is throwing ELFCLASS32 error and DBI is working fine when using 64 bit perl. AND xxxxx is working fine and DBI is throwing ELFCLASS64 error when using 32 bit perl Thanks.

Replies are listed 'Best First'.
Re^2: Installing 32 BIT DBI and DBD
by Anonymous Monk on Aug 30, 2013 at 07:56 UTC

    so the one-bittness perl is loading another-bitness .so and complaining?

    In that case you've got a path problem, you gotta make sure the 32bit-ness programs can't see the the 64bit-ness paths. Change LD_LIBRARY_PATH, figure out the paths like ldd -v ..so like this ...

      Its set to 32 bit lib of oracle. and PERL5LIB is set to 32 bit perl

        Are you saying the 32bit perl is trying to build/compile/makemaker a 64bit DBI?

        Thats very unlikely -- you're probably calling the 64bit perl instead of the 32bit perl -- check which perl you're calling :)