IBM Support

How to fix the error "fglpc: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory"

Troubleshooting


Problem

How to fix the error "fglpc: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory" using the IBM Informix Tools products.

Symptom


After the installation of the IBM® Informix Tools the programs might not start because they can not find the correct libraries and the programs fail with the error :


fglpc: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory

Cause


Environment variable LD_LIBRARY_PATH is missing or it has a wrong setting.

Resolving The Problem


1. Check the installation order of the IBM Informix products, it can be done checking the file $INFORMIXDIR/etc/.snfile, installation should follow the order that is mentioned below:

    a. Application development tools: Install application development tools in order, from oldest to newest versions.

    b. SQL application programming interfaces (APIs): Install SQL APIs in order, from oldest to newest versions.

    c. Database servers: Install database servers in order, from oldest to newest versions. A database server should be installed in the same directory as any SQL API or application development tools that use it. Therefore, verify that $INFORMIXDIR is set to the common directory before you install these types of products.

    d. Additional products: Install remaining interface and documentation products in order, from oldest to newest versions.

2. Set the environment variable LD_LIBRARY_PATH, it sets the path to the library file that the IBM Informix products uses, it has to be set to:

    LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib/tools;

    Note: Some operating systems do not take care of the LD_LIBRARY_PATH environment variable, please use the environment variable equivalent in your operating system.(i.e. LIBPATH in AIX, SHLIB_PATH in HP-UX and so on.)

In the AIX case the error message should be:

    exec():
    0509-036 Cannot load program isql because of the following errors:
    0509-150 Dependent module libifsql.so could not be loaded.
    0509-022 Cannot load module libifsql.so.
    0509-026 System error: A file or directory in the path name does not exist.

  • If the environment variable LD_LIBRARY_PATH is set but you get the error message fglpc: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory, please check that it has been set to the correct library paths shown previously.
  • Verify that the file shown in the error message, in this case libifsql.so, exists in the correct directory $INFORMIXDIR/lib/esql. If the file does not exist you have to re-install the IBM Informix products following the order shown in the first step, or restore it from a system backup file.

Note: This error also occurs when you have installed tools (4gl, r4gl, ..) 64 bits in the same directory with CSDK 32 bits.

[{"Product":{"code":"SSVT2J","label":"Informix Tools"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"--","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF002","label":"AIX"},{"code":"PF025","label":"Platform Independent"},{"code":"PF008","label":"DYNIX\/ptx"},{"code":"PF010","label":"HP-UX"},{"code":"PF015","label":"IRIX"},{"code":"PF026","label":"Reliant UNIX"},{"code":"PF027","label":"Solaris"}],"Version":"1.0;1.1;1.2;1.3;1.4;1.5;1.6;2.0;2.1;2.2;2.3;2.4;2.5;2.6;2.7;2.8;2.9;3.0;4.0;4.1;4.2;5.1;6.0;7.2;7.3","Edition":"Rapid Development System;Compiler;Interactive Debugger","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
03 June 2021

UID

swg21156399