14. Adding Other Components to Your Application : 3GL Sample Application : How the 3GL Sample Application Works on UNIX or Linux : How You Can Set Up the Run Environment
 
Share this page                  
How You Can Set Up the Run Environment
Ensure that OpenROAD can find samp3gl.shared-lib-suffix. There are two ways to do this:
Set the environment variable II_LIBU3GL to point to samp3gl.shared-lib-suffix.
You may do this either by setting the system environment variable, II_LIBU3GL, or by using the ingsetenv command:
ingsetenv II_LIBU3GL $II_SYSTEM/ingres/lib/samp3gl.shared-lib-suffix
Whether you set the system environment variable or use ingsetenv, you must specify the full path if the directory where you placed the shared library is not in the search path.
If you want to use a variable other than II_LIBU3GL, set that variable the same way you will set II_LIBU3GL but remember you must to run the application with the -m flag.
Ensure that samp3gl.shared-lib-suffix is in a directory that is in your search path.
All the 3GL procedures in the test_3gl application are defined as being in samp3gl.shared-lib-suffix. If the shared library is in the search path, OpenROAD will find it when you run the application.