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.
- 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.)
- 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.
Was this topic helpful?
Document Information
Modified date:
03 June 2021
UID
swg21156399