Re: can't execute esql/c program
Posted in 1998
alric wrote:
>
> hi
>
> by 'esql -o meeting meeting.ec'
> I got execution file 'meeting'
>
> but I can't execute it with following message
> [ meeting : error in loading shared libraries.
> libifsql.so: cannot open shared object file: nu such file or
> directory ]
>
> I confirmed that there's libifsql.so in /home/informix/lib/esql.
>
> my .bashrc follows
> ~
> export INFORMIXDIR=/home/informix
> export INFORMIXSERVER=plato
> export PATH="$INFORMIXDIR/bin:$PATH:."
Hi,
I guess you forgot to set the environment variable "LD_LIBRARY_PATH".
Possibly this variable is called different on your platform - simply
read your UNIX manual about the "ld" linker or read the release notes.
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$INFORMIXDIR/lib/esql"
Another way to make your program independant from the library
is to use the esql preprocessor option: "-static"
esql -static -o meeting meeting.ec
Bye
--
Stefan Weideneder
----------------------------------------------------------------
----------------------------------------------------------------