title: Windows Perl DB2 database remote connection issue
body: <p>I am trying to make a Perl DB2 remote connection of Windows following instructions <a href="http://www-01.ibm.com/support/docview.wss?rs=71&amp;uid=swg21297335#caveats" rel="nofollow noreferrer">on this IBM site</a>.</p>
  
  <p>However, I get an error and it will not work</p>
  
  <h3>Command console error message</h3>
  
  <pre><code>install_driver(DB2) failed: Can't load
  'C:/Perl64/site/lib/auto/DBD/DB2/Constants/Constants.dll' for module DBD::DB2::Constants: load_file:%1
  It is not a valid Win32 application. at C:/Perl64/lib/DynaLoader.pm line 194.
  at C:/Perl64/site/lib/DBD/DB2.pm line 31.
  Compilation failed in require at C:/Perl64/site/lib/DBD/DB2.pm line 31.
  BEGIN failed--compilation aborted at C:/Perl64/site/lib/DBD/DB2.pm line31.
  Compilation failed in require at (eval 5) line 3.
  Perhaps a required shared library or dll isn't installed where expected
  </code></pre>
  
  <h3>Environment information</h3>
  
  <ul>
  <li><p>Windows7 64bit</p></li>
  <li><p>DB2 Client v10.5(fp8) 64bit</p></li>
  <li><p>Perl v5.20(64bit)</p></li>
  <li><p>DBD::DB2 Driver(32bit)</p></li>
  <li><p><a href="http://www.bribes.org/perl/ppm/" rel="nofollow noreferrer">http://www.bribes.org/perl/ppm/</a></p></li>
  </ul>
  
  <h3>Perl -v</h3>
  
  <pre><code>This is perl 5, version 20, subversion 1 (v5.20.1) built for MSWin32-x64-multi-thread
  </code></pre>
  
  <h3>Perl -V</h3>
  
  <pre><code>  Platform:
      osname=MSWin32, osvers=6.1, archname=MSWin32-x64-multi-thread
      uname=''
      config_args='undef'
      hint=recommended, useposix=true, d_sigaction=undef
      useithreads=define, usemultiplicity=define
      use64bitint=define, use64bitall=undef, uselongdouble=undef
      usemymalloc=n, bincompat5005=undef
  </code></pre>
  
  <h3>Perl DB2 connect source</h3>
  
  <pre class="lang-perl prettyprint-override"><code>use DBI;
  
  my $dbh = DBI-&gt;connect("dbi:DB2:$databaseName", $userName, $password);
  </code></pre>