Solving “LoadError: 14001″ driver errors

Yesterday, there have been a couple of reports of problems with the driver immediately after upgrades to the ibm_db gem version 0.9.0 on Microsoft Windows. The error reported is analogous to the following:

gem 'ibm_db'
require 'mswin32/ibm_db'
LoadError: 14001: The application has failed to start because its side-by-side
configuration is incorrect. Please see the application event log for more detail.

Or in other cases:

LoadError: 14001: This application has failed to start because the application
configurationis incorrect. Reinstalling the application may fix this problem.

If you haven’t received this type of error message, your installation is working and stable. For those few of you who experienced this problem, I want to let you know that this issue is actively being investigated and the proposed solution is being thoroughly tested. Since the error above does not only concern our driver (other applications are raising similar errors on Windows), it appears that the problem is related to the lack or misconfiguration of the VC8 runtime.

Those of you who received an error message, can try to install the Microsoft Visual C++ 2005 Redistributable Package (x86) and try again. This ensures that the VC8 runtime is configured in order to support the new DB2 CLI binary dependencies related to the “native assembly cache (also called WinSxS folder)”. This solved the problem in our preliminary tests. Please use the comments to tell us if this worked for you.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Posted by Antonio Cangiano | October 23 2007 10:47 am | Tips&Tricks

3 Responses to “Solving “LoadError: 14001″ driver errors”

  1. sim on 24 Oct 2007 at 11:03 pm #

    Hi , Antonio

    My environment:
    Win XP SP2 (Japanese),DB2 9 fp3a , ibm_db 0.9.0

    I installed “Microsoft Visual C++ 2005 Redistributable Package (x86)” and run the ruby script that you described, but I still got the 14001 error.

    I re-tried with “Microsoft Visual C++ 2005 Redistributable Package (x86) SP1″ , it produced same error.

    This is error message. (Japanese)
    ===
    c:/ruby/lib/ruby/gems/1.8/gems/ibm_db-0.9.0-mswin32/lib/mswin32/ibm_db.so: 14001: ?????????
    ??????????????????????????????????????????????????
    ?????????????????????? – c:/ruby/lib/ruby/gems/1.8/gems/ibm_db-0.9.0-mswin32
    /lib/mswin32/ibm_db.so (LoadError)
    from c:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require’
    from test1.rb:2

  2. Antonio Cangiano on 24 Oct 2007 at 11:13 pm #

    Hi Sim,

    we’ll keep you posted as we work on this.

    Thanks,
    Antonio

  3. Guoliang on 30 Oct 2007 at 5:27 pm #

    I got this error and tried same thing as Sim did. Still doesn’t work.

    >ruby db_test.rb
    C:/ruby/lib/ruby/gems/1.8/gems/ibm_db-0.9.0-mswin32/lib/mswin32/ibm_db.so: 14001: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. – C:/ruby/lib/ruby/gems/1.8/gems/ibm_db-0.9.0-mswin32/lib/mswin32/ibm_db.so (LoadError)
    from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require’
    from C:/ruby/lib/ruby/gems/1.8/gems/ibm_db-0.9.0-mswin32/lib/ibm_db.rb:1
    from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `gem_original_require’
    from C:/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:33:in `require’
    from db_test.rb:1

Trackback URI | Comments RSS

Leave a Reply