Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

ESQL problems on RedHat Linux 6.2

168 views
Skip to first unread message

Laszlo G. Szijarto

unread,
May 24, 2001, 3:26:23 PM5/24/01
to
Hello, Everyone,
I installed the Client SDK 2.50 for Linux (RedHat 6.2). Everything appears
to install correctly. But, when I try to run a compiled esql program, I get
the following error message --

"error in loading shared libraries: libifsql.so: cannot open shared object
file: No such file or directory"

I do have that file on my system and have the SHLIB_PATH environment
variable set to the directory in which that file resides?

Can anyone offer any suggestions?

Thank you,
Laszlo Szijarto


Hans Siebrand

unread,
May 24, 2001, 2:08:55 PM5/24/01
to
In what order were the products installed and where?


Laszlo G. Szijarto wrote in message
<9ejn81$sa3$1...@sulawesi-fi.lerc.nasa.gov>...

Laszlo G. Szijarto

unread,
May 24, 2001, 4:29:29 PM5/24/01
to
RedHat 6.2
Informix Dynamic Server 7.30
Client SDK 2.50


"Hans Siebrand" <sieb...@bigpond.com> wrote in message
news:1qdP6.13122$hV3....@newsfeeds.bigpond.com...

Mario Estrada

unread,
May 24, 2001, 10:01:48 PM5/24/01
to

You should set LD_LIBRARY_PATH instead.

Laszlo G. Szijarto

unread,
May 25, 2001, 11:59:08 AM5/25/01
to
Thank you, Mario, but that didn't work either. I'm stumped.

Laszlo


"Mario Estrada" <marioe...@guate.net> wrote in message
news:9ekgd9$nd0$1...@news.xmission.com...

hg

unread,
May 25, 2001, 6:02:31 PM5/25/01
to
Set LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql

Hank

Bogdan CIRLIG

unread,
May 25, 2001, 6:14:07 PM5/25/01
to
I'm compiling some C programs on RH 6.2. The message as you mighet have
figured out is because the requested file is not found so it's a path
problem. libifsql.so is located in <informix_dir>/lib/esql

So, all I need is to set LD_LIBRARY_PATH. It would be nice to include this
env variable into your current user profile so you won't have to set it
everytime you logon. Anyway do NOT forget to export the variable after you
set it.

For example on my machine this is set to
LD_LIBRARY_PATH=/home/informix/lib:/home/informix/lib/esql:/home/informix/li
b/dmi:

You can include the path into your Makefile for the compiler to know it.
For example:

IFMX_INCLUDES=-I$(INFORMIXDIR)/incl/dmi -I$(INFORMIXDIR)/incl/esql
INCLUDES=$(IFMX_INCLUDES)
and compile with this arg. (INCLUDES)

All the best,
Bogdan CIRLIG

"Laszlo G. Szijarto" <Laszlo.G...@grc.nasa.gov> wrote in message
news:9ejn81$sa3$1...@sulawesi-fi.lerc.nasa.gov...

Zelig

unread,
May 28, 2001, 10:27:56 AM5/28/01
to

Laszlo G. Szijarto <Laszlo.G...@grc.nasa.gov> wrote in message
9ejn81$sa3$1...@sulawesi-fi.lerc.nasa.gov...

Laszlo G. Szijarto

unread,
May 29, 2001, 2:40:00 PM5/29/01
to
Thank you, Bogdan,

I didn't have all those directories in my path variable !!!

Laszlo

Jonathan Leffler

unread,
Jun 11, 2001, 5:00:55 PM6/11/01
to
Zelig wrote:
> Laszlo G. Szijarto <Laszlo.G...@grc.nasa.gov> wrote in message
> 9ejn81$sa3$1...@sulawesi-fi.lerc.nasa.gov...
> > I installed the Client SDK 2.50 for Linux (RedHat 6.2). Everything
> appears
> > to install correctly. But, when I try to run a compiled esql program, I
> get
> > the following error message --
> >
> > "error in loading shared libraries: libifsql.so: cannot open shared object
> > file: No such file or directory"
> >
> > I do have that file on my system and have the SHLIB_PATH environment
> > variable set to the directory in which that file resides?
> >
> > Can anyone offer any suggestions?

SHLIB_PATH is an HP-UX environment variable.
Use LD_LIBRARY_PATH (Solaris, Linux) or ldconfig (Linux only) instead.

--
Yours,
Jonathan Leffler (Jonathan...@Informix.com) #include <disclaimer.h>
Guardian of DBD::Informix v1.00.PC1 -- http://www.perl.com/CPAN
"I don't suffer from insanity; I enjoy every minute of it!"

edward

unread,
Jun 14, 2001, 2:51:05 AM6/14/01
to
Dear all,
I have the same trouble
I have set the ldconfig envionment variable to "$INFORMIXDIR/lib/esql"
the command I do is :

export ldconfig=$INFORMIXDIR/lib/esql

but it retures the same error message


"error in loading shared libraries: libifsql.so: cannot open shared object
file: No such file or directory"

Why????
Please help me
Thanks a lot

Best Regards
edwa...@kimo.com.tw

"Jonathan Leffler" <jlef...@informix.com> ?????
news:3B253179...@informix.com...

Andy Lennard

unread,
Jun 14, 2001, 5:41:25 AM6/14/01
to
The 'esql' script knows where to find the libraries, and references them
directly.

You have to set your library path to the same as esql references.

On my Solaris m/c mine is set to:

/usr/informix/lib/esql:/usr/informix/lib

If you have ldd, or equivalent, that will tell you what libraries will
be required by your task at run-time, before it complains...

You can also look in the esql script to find out what libraries are
used.

In article <9g9mtt$523ql$1...@news.ht.net.tw>, edward
<edwa...@kimo.com.tw> writes

Andrew Lennard an...@kontron.demon.co.uk

Jonathan Leffler

unread,
Jun 14, 2001, 3:08:08 PM6/14/01
to
edward wrote:
> I have the same trouble
> I have set the ldconfig envionment variable to "$INFORMIXDIR/lib/esql"
> the command I do is :
>
> export ldconfig=$INFORMIXDIR/lib/esql

ldconfig is a program, not an environment variable -- I realize my
message was at best ambiguous on this, and probably just misleading.
LD_LIBRARY_PATH is the environment variable that has to be set per
user. Using ldconfig (to update /etc/ld.so.conf) achieves the effect
for all users.

0 new messages