Skip to main content

This article explains what to do if an environment variable is set incorrectly.

Problem:

We are attempting to use Micro Focus COBOL and receiving the following error:

fatal: libcobrts64.so.2: open failed: No such file or directory

Resolution:

If you have set LD_LIBRARY_PATH and have exported it then there is a chance you have set the LD_LIBRRY_PATH_64 environment variable. This environment variable takes priority over the LD_LIBRARY_PATH environment variable. To resolve this, either:


  1. Unset LD_LIBRARY_PATH_64
  2. Use LD_LIBRARY_PATH_64 as you would LD_LIBRARY_PATH. That is, set LD_LIBRARY_PATH_64=$COBDIR/lib:<oracle-environment-variables>:......
Old KB# 14311