If you are running:
your CGI program will need these environment variables set. You need to add a SetEnv or PassEnv (Apache 1.1 or later) to your Apache configuration file (e.g. httpd.conf):
PassEnv LD_LIBRARY_PATH /usr/local/easysoft/unixODBC/lib:/usr/local/easysoft/oob/client:/usr/local/easysoft/lib
Not all dynamic linkers use LD_LIBRARY_PATH, some use LIBPATH, SHLIB_PATH etc. Check your dynamic linker documentation for the correct environment variable.
The Apache Group has full documentation for SetEnv / PassEnv.
The above assumes you are using straight CGI with your program running external to your web server. If you are running something like mod_perl where the Perl interpreter is built into Apache, you may need to tell your dynamic linker where to find ODBC-ODBC Bridge shared objects before Apache is started. For Apache, you might set and export LD_LIBRARY_PATH etc. in apachectl.