Re: esql on Suse Linux 6.4
Posted in 2000
Topics: Connectivity: ESQL/C, 4GL & Embedded SQL, Platform-Specific Issues
>>>>> " " == ConnorsJohnny <connorsjohnny@aol.com> writes: > I am trying patiently but despairingly to learn how to use esql > on suse 6.4. I have the demo database SE and seem to be able to > successfully compile the .ec source files. However, when I try > to execute a.out the following message is genereated : "error > in loading shared libraries: libifl.so : cannot open shared > object file: No such file or directory" > I have entered "esql -libs" and libifsql is listed as a default > library. > What shall I do ? Either link your application with static libraries, (esql -static -libs will give the correct link order of INFORMIX libraries) or put the directory where the shared INFORMIX libraries into a file which the dynamic loader uses to find shared libraries (the name of the system file escapes me right now) -- its equivalent to SHLIB_PATH on other Unix boxes. HTH, Mark -- "Experience is what you got by not having it when you need it." -- Anonymous
In article <dclmtom3yx.fsf@thunder.nws.noaa.gov>, Mark Oberfield <oberfiel@thunder.nws.noaa.gov> writes >>>>>> " " == ConnorsJohnny <connorsjohnny@aol.com> writes: > > > I am trying patiently but despairingly to learn how to use esql > > on suse 6.4. I have the demo database SE and seem to be able to > > successfully compile the .ec source files. However, when I try > > to execute a.out the following message is genereated : "error > > in loading shared libraries: libifl.so : cannot open shared > > object file: No such file or directory" > > > I have entered "esql -libs" and libifsql is listed as a default > > library. > > > What shall I do ? > >Either link your application with static libraries, (esql -static -libs >will give the correct link order of INFORMIX libraries) or put the >directory where the shared INFORMIX libraries into a file which the >dynamic loader uses to find shared libraries (the name of the system >file escapes me right now) -- its equivalent to SHLIB_PATH on other >Unix boxes. > >HTH, > >Mark You need to set the LD_LIBRARY_PATH environment variable to a colon separated list of directories so they can be found when the program starts. The libraries are in $INFORMIXDIR/lib or directories under there. ldd a.out should tell you which libraries cannot be found. -- David Williams