Re: ESQL\\C on Linux errors...
Posted in 1999
You can also use -static option to compile your source and so you wont need any shared libs... sandeep.singh@usa.net wrote: > Hello all! > > Just installed IDS (7.3) Suite for Linux (RedHat 6.0/Kernel 2.2.5). > Installed IDS, I-Connect and the Client SDK. Everything installed > w/o errors. I went on to compile a small test app. in ESQL\\C and it > compiled w/o errors. When I run it, it gives an error referring to > the fact that it cannot find "libifsql.so". I added the path to the > ESQL\\C lib directory ($INFORMIXDIR/lib/esql) during compile with the > the -I option but to no avail. Has anybody seen something similar? > Any suggestions, comments will be greatly appreciated. Here is the > screen capture. > > [rustom@zobar esql]$ ls -l > -rwxr-xr-x 1 rustom rustom 925 May 30 18:48 ndri.ec > [rustom@zobar esql]$ esql -o ndri.exe ndri.ec > [rustom@zobar esql]$ ls -l > -rw-rw-r-- 1 rustom rustom 30384 May 30 23:06 ndri.c > -rwxr-xr-x 1 rustom rustom 925 May 30 18:48 ndri.ec > -rwxrwxr-x 1 rustom rustom 14700 May 30 23:07 ndri.exe > [rustom@zobar esql]$ ./ndri.exe > ./ndri.exe: error in loading shared libraries: libifsql.so: cannot open > shared object file: No such file or directory > [rustom@zobar esql]$ ls -l /opt/informix/lib/esql/libifsql.* > -rw-r--r-- 1 informix informix 274522 May 30 19:15 > /opt/informix/lib/esql/libifsql.a > -rwxr-xr-x 3 informix informix 238532 Dec 7 22:53 > /opt/informix/lib/esql/libifsql.so > [rustom@zobar esql]$ > > Thanks, > > Sandeep > > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't.