title: How to install a single Perl Crypt::OpenSSL::AES for use by different linux environments
body: <p>I have a sticky problem that I am not quite sure how to solve. The situation is as follows:</p>
  
  <ul>
  <li>We have a common 32bit perl 5.10.0</li>
  <li>It is used by both 32bit and 64bit linux machines</li>
  </ul>
  
  <p>Now the problem is that I need to install Crypt::OpenSSL::AES module for the Perl, however since it builds a shared library a lot of problems appear:</p>
  
  <ul>
  <li>If built on 64bit machines the module is not usable with "wrong ELF class: ELFCLASS64" error for the generated AES.so</li>
  <li>If built on a 32bit machine the module is not usable on the 64bit with undefined symbol: AES_encrypt</li>
  </ul>
  
  <p>The problem I'm guessing is that the different machines have different versions of OpenSSL installed and they are not compatible with each other.</p>
  
  <p>My question is given that I cannot change any of the machine configurations, what should I do to get the AES module working on all the machines?</p>
  
  <p>Thanks!</p>