Easysoft ODBC-ODBC Bridge

How do I pass LD_LIBRARY_PATH down to CGI programs from Apache?

Last Reviewed:
12th January 2024

If you are running:

  1. an application using Easysoft ODBC-ODBC Bridge under Apache as CGI
  2. on a platform where the dynamic linker needs to be told where to find all required shared objects using an environment variable

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):


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.

Applies To

Knowledge Base Feedback

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

(* Required Fields)