Easysoft ODBC-ODBC Bridge

Why do I get error "ld: cannot open -lesoobclient: No such file or directory" when attempting to link an application with the OOB

Article:
00080
Last Reviewed:
28th October 2008
Revision:
2

You need to tell the dynamic linker where to find the libesoobclient shared object (there are some other required shared objects in the easysoft/lib subdirectory of the installation path too).

For Linux:

In the beta releases, the installation script does not add entries to the /etc/ld.so.conf file if the installing user is NOT root or if only the client is installed. You need to add the paths to all the shared objects in the OOB installation to /etc/ld.so.conf and rerun ldconfig (usually in /sbin). e.g. if you installed OOB in the default location you would add:

/usr/local/easysoft/lib
/usr/local/easysoft/oob/client

to /etc/ld.so.conf and then run /sbin/ldconfig. To be sure they are picked up properly you can use /sbin/ldconfig -v where part of the output for the default installation path would be:

/usr/local/easysoft/lib:
libesrpc.so => libesrpc.so
libsupport.so => libsupport.so
/usr/local/easysoft/oob/client:
libesoobclient.so => libesoobclient.so

Note that you must be root to run ldconfig and probably, to edit

/etc/ld.so.conf.

For other UNIX platforms:

Read the above for Linux first. However, most platforms do not have an equivalent of the /etc/ld.so.conf file and that usually means you have to add the paths to the LD_RUN_PATH, LD_LIBRARY_PATH, SHLIB_PATH or LIBPATH environment variables and then export them. e.g.

$ LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/easysoft/lib:/usr/local/easysoft/oob/client
$ export LD_LIBRARY_PATH

An alternative, although not one that Easysoft particularly recommends is that you move the shared objects to a directory which is on your linker's default search path (e.g. /usr/lib).

If you installed the unixODBC driver manager in the OOB distribution you will want to add the path /usr/local/easysoft/unixODBC/lib to the above.

Applies To

Knowledge Base Feedback

* Did this content help you?
* Please select one option based on your first choice:

(* Required Fields)


Oracle is a registered trademark of Oracle Corporation and/or its affiliates.