in reply to Re^2: wrong ELF class
in thread wrong ELF class

You could have 64-bit system installed and 32-bit Perl installed from somewhere else. Does running linux32 before compiling help you to build the 32-bit module?
Sorry if my advice was wrong.