Error: F_JG202F: Attempt To Load Dynamic Shared Library Failed
Issue
The following error appears:
F_JG202F: Attempt to load dynamic shared library failed with error: cannot open shared object file: No such file or directory. This problem could be because this library or a library it referenced was not contained in library search path variable 'LD_LIBRARY_PATH'.
Environment
HVR 5
Resolution
This issue occurs when the first attempt to connect to a database is through a Linux or Unix system. A common cause is that \[referenced library\].so
is not installed on the system or cannot be found.
To resolve this issue, do the following:
Locate the release notes
$HVR_HOME/hvr.rel
on the machine that connects to the database.Check the required connectivity libraries for your database and install any missing libraries.
If the above error continues to appear, find out what is missing. You can use a command such as ldd
on Linux to find the linked dynamic dependencies. For example, ldd hvr_or120.so
will output the list of referenced libraries for the HVR Oracle 12c connectivity library.
It will be clear from the output if a referenced library cannot be found. You may have to set or adjust the LD_LIBRARY_PATH
environment variable to ensure that all dynamically linked dependencies can be found.
NOTE: The
LD_LIBRARY_PATH
environmental variable applies to Linux. Unix systems may have a unique equivalent.
When HVR initiates the connection, ensure the environment is set correctly. It may involve restarting the remote listener. You may have to edit the xinetd setup you created or add the environment settings to the hvrtab
file when using hvr_boot
to start the remote listener upon server start.
NOTE: You may need to follow the above steps again if you initially ran the hvrremotelistener process on the command line and later switched to an xinetd or hvr_boot automatic startup.