dbTalk Databases Forums  

error trying to run Art's dostats

comp.databases.informix comp.databases.informix


Discuss error trying to run Art's dostats in the comp.databases.informix forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Laurie Gustin
 
Posts: n/a

Default error trying to run Art's dostats - 04-19-2010 , 12:53 PM






IDS115FC6X3
SUSE 10.2

I installed and compiled (Make Install) the utils2_ak package, but can't seem to get dostats to run. The error would indicate a path problem trying to find .so files. I checked and the file is in the directory /home/informix/lib/esql, and I modified my path to include this directory. I still get the error.

Please let me know if you have any clues, or if more information is needed.

Thanks
Laurie



informix@psdb05sat:~/utils> ./dostats
../dostats: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory

PATH=/home/informix/bin:/home/informix/lib/esql:/home/infrmx/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

informix@psdb05sat:/home/informix/lib/esql> ll libif*
-rw-r--r-- 2 informix informix 572676 2010-04-19 11:28 libifcobsql.a
-rwxr-xr-x 3 informix informix 400684 2009-12-15 04:35 libifcobsql.so
-rw-r--r-- 2 informix informix 572204 2010-04-19 11:28 libiffgisql.a
-rwxr-xr-x 3 informix informix 400616 2009-12-15 04:35 libiffgisql.so
-rw-r--r-- 2 informix informix 760596 2010-04-19 11:28 libifgen.a
-rwxr-xr-x 3 informix informix 458753 2010-04-19 11:28 libifgen.so
-rw-r--r-- 2 informix informix 536270 2010-04-19 11:28 libifgls.a
-rwxr-xr-x 3 informix informix 370270 2009-12-15 04:35 libifgls.so
-rw-r--r-- 2 informix informix 1370 2010-04-19 11:28 libifglx.a
-rwxr-xr-x 3 informix informix 6041 2009-12-15 04:35 libifglx.so
-rw-r--r-- 2 informix informix 246954 2010-04-19 11:28 libifos.a
-rwxr-xr-x 3 informix informix 166405 2009-12-15 04:35 libifos.so
-rw-r--r-- 2 informix informix 572244 2010-04-19 11:28 libifsql.a
-rwxr-xr-x 3 informix informix 400581 2009-12-15 04:35 libifsql.so
-rw-r--r-- 1 informix informix 26858 2010-04-19 11:28 libifxa.a
-rwxr-xr-x 3 informix informix 27995 2009-12-15 04:35 libifxa.so


Laurie Gustin
IT Programmer Analyst
Department of Public Safety
lgustin (AT) utah (DOT) gov
801-965-4410

Reply With Quote
  #2  
Old   
Art Kagel
 
Posts: n/a

Default Re: error trying to run Art's dostats - 04-19-2010 , 12:59 PM






In your environment do:

export
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib

An alternative would be to modify the makefile to make the executables
'static' so they do not need shared libraries by adding "-static" to the
CFLAGS define. Static linked executables are much larger, however, than
dynamically linked ones, so...

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

See you at the 2010 IIUG Informix Conference
April 25-28, 2010
Overland Park (Kansas City), KS
www.iiug.org/conf

Disclaimer: Please keep in mind that my own opinions are my own opinions and
do not reflect on my employer, Advanced DataTools, the IIUG, nor any other
organization with which I am associated either explicitly, implicitly, or by
inference. Neither do those opinions reflect those of other individuals
affiliated with any entity with which I am affiliated nor those of the
entities themselves.



On Mon, Apr 19, 2010 at 1:53 PM, Laurie Gustin <lgustin (AT) utah (DOT) gov> wrote:

Quote:
IDS115FC6X3
SUSE 10.2

I installed and compiled (Make Install) the utils2_ak package, but can't
seem to get dostats to run. The error would indicate a path problem trying
to find .so files. I checked and the file is in the directory
/home/informix/lib/esql, and I modified my path to include this directory.
I still get the error.

Please let me know if you have any clues, or if more information is needed.

Thanks
Laurie



informix@psdb05sat:~/utils <informix@psdb05sat:%7E/utils>> ./dostats
./dostats: error while loading shared libraries: libifsql.so: cannot open
shared object file: No such file or directory


PATH=/home/informix/bin:/home/informix/lib/esql:/home/infrmx/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin

informix@psdb05sat:/home/informix/lib/esql> ll libif*
-rw-r--r-- 2 informix informix 572676 2010-04-19 11:28 libifcobsql.a
-rwxr-xr-x 3 informix informix 400684 2009-12-15 04:35 libifcobsql.so
-rw-r--r-- 2 informix informix 572204 2010-04-19 11:28 libiffgisql.a
-rwxr-xr-x 3 informix informix 400616 2009-12-15 04:35 libiffgisql.so
-rw-r--r-- 2 informix informix 760596 2010-04-19 11:28 libifgen.a
-rwxr-xr-x 3 informix informix 458753 2010-04-19 11:28 libifgen.so
-rw-r--r-- 2 informix informix 536270 2010-04-19 11:28 libifgls.a
-rwxr-xr-x 3 informix informix 370270 2009-12-15 04:35 libifgls.so
-rw-r--r-- 2 informix informix 1370 2010-04-19 11:28 libifglx.a
-rwxr-xr-x 3 informix informix 6041 2009-12-15 04:35 libifglx.so
-rw-r--r-- 2 informix informix 246954 2010-04-19 11:28 libifos.a
-rwxr-xr-x 3 informix informix 166405 2009-12-15 04:35 libifos.so
-rw-r--r-- 2 informix informix 572244 2010-04-19 11:28 libifsql.a
-rwxr-xr-x 3 informix informix 400581 2009-12-15 04:35 libifsql.so
-rw-r--r-- 1 informix informix 26858 2010-04-19 11:28 libifxa.a
-rwxr-xr-x 3 informix informix 27995 2009-12-15 04:35 libifxa.so


Laurie Gustin
IT Programmer Analyst
Department of Public Safety
lgustin (AT) utah (DOT) gov
801-965-4410

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list


Reply With Quote
  #3  
Old   
Laurie Gustin
 
Posts: n/a

Default Re: error trying to run Art's dostats - 04-19-2010 , 02:51 PM



Thanks Art!
I added the LD_LIBRARY_PATH and this time I got this error:

informix@psdb05sat:~/utils> ./dostats -d nibrs
FAILED: Cannot connect to SMI DATABASE (@psdev2); error=-25596, isam=0


Laurie

Quote:
Art Kagel <art.kagel (AT) gmail (DOT) com> 4/19/2010 11:59 AM
In your environment do:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib

An alternative would be to modify the makefile to make the executables 'static' so they do not need shared libraries by adding "-static" to the CFLAGS define. Static linked executables are much larger, however, than dynamically linked ones, so...

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

See you at the 2010 IIUG Informix Conference
April 25-28, 2010
Overland Park (Kansas City), KS
www.iiug.org/conf

Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.



On Mon, Apr 19, 2010 at 1:53 PM, Laurie Gustin <lgustin (AT) utah (DOT) gov> wrote:


IDS115FC6X3
SUSE 10.2
I installed and compiled (Make Install) the utils2_ak package, but can't seem to get dostats to run. The error would indicate a path problem trying to find .so files. I checked and the file is in the directory /home/informix/lib/esql, and I modified my path to include this directory. I still get the error.
Please let me know if you have any clues, or if more information is needed.
Thanks
Laurie
informix@psdb05sat:~/utils ( mailto:informix@psdb05sat:%7E/utils )> ../dostats
../dostats: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory
PATH=/home/informix/bin:/home/informix/lib/esql:/home/infrmx/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
informix@psdb05sat:/home/informix/lib/esql> ll libif*
-rw-r--r-- 2 informix informix 572676 2010-04-19 11:28 libifcobsql.a
-rwxr-xr-x 3 informix informix 400684 2009-12-15 04:35 libifcobsql.so
-rw-r--r-- 2 informix informix 572204 2010-04-19 11:28 libiffgisql.a
-rwxr-xr-x 3 informix informix 400616 2009-12-15 04:35 libiffgisql.so
-rw-r--r-- 2 informix informix 760596 2010-04-19 11:28 libifgen.a
-rwxr-xr-x 3 informix informix 458753 2010-04-19 11:28 libifgen.so
-rw-r--r-- 2 informix informix 536270 2010-04-19 11:28 libifgls.a
-rwxr-xr-x 3 informix informix 370270 2009-12-15 04:35 libifgls.so
-rw-r--r-- 2 informix informix 1370 2010-04-19 11:28 libifglx.a
-rwxr-xr-x 3 informix informix 6041 2009-12-15 04:35 libifglx.so
-rw-r--r-- 2 informix informix 246954 2010-04-19 11:28 libifos.a
-rwxr-xr-x 3 informix informix 166405 2009-12-15 04:35 libifos.so
-rw-r--r-- 2 informix informix 572244 2010-04-19 11:28 libifsql.a
-rwxr-xr-x 3 informix informix 400581 2009-12-15 04:35 libifsql.so
-rw-r--r-- 1 informix informix 26858 2010-04-19 11:28 libifxa.a
-rwxr-xr-x 3 informix informix 27995 2009-12-15 04:35 libifxa.so


Laurie Gustin
IT Programmer Analyst
Department of Public Safety
lgustin (AT) utah (DOT) gov
801-965-4410

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
  #4  
Old   
Richard Harnden
 
Posts: n/a

Default Re: error trying to run Art's dostats - 04-19-2010 , 03:05 PM



On 19/04/2010 18:53, Laurie Gustin wrote:
Quote:
IDS115FC6X3
SUSE 10.2
I installed and compiled (Make Install) the utils2_ak package, but can't
seem to get dostats to run. The error would indicate a path problem
trying to find .so files. I checked and the file is in the directory
/home/informix/lib/esql, and I modified my path to include this
directory. I still get the error.
Please let me know if you have any clues, or if more information is needed.
You need to add it to LD_LIBRARY_PATH, not PATH.

Reply With Quote
  #5  
Old   
Laurie Gustin
 
Posts: n/a

Default Re: error trying to run Art's dostats - 04-19-2010 , 03:10 PM



Nevermind - I just tried to run it again and it worked fine... Not sure what the problem was... but hey! it works now - I like that.

Thanks for your help!

Laurie


***
Thanks Art!
I added the LD_LIBRARY_PATH and this time I got this error:

informix@psdb05sat:~/utils> ./dostats -d nibrs
FAILED: Cannot connect to SMI DATABASE (@psdev2); error=-25596, isam=0


Laurie

Quote:
Art Kagel <art.kagel (AT) gmail (DOT) com> 4/19/2010 11:59 AM
In your environment do:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$INFORMIXDIR/lib/esql:$INFORMIXDIR/lib

An alternative would be to modify the makefile to make the executables 'static' so they do not need shared libraries by adding "-static" to the CFLAGS define. Static linked executables are much larger, however, than dynamically linked ones, so...

Art

Art S. Kagel
Advanced DataTools (www.advancedatatools.com)
IIUG Board of Directors (art (AT) iiug (DOT) org)

See you at the 2010 IIUG Informix Conference
April 25-28, 2010
Overland Park (Kansas City), KS
www.iiug.org/conf

Disclaimer: Please keep in mind that my own opinions are my own opinions and do not reflect on my employer, Advanced DataTools, the IIUG, nor any other organization with which I am associated either explicitly, implicitly, or by inference. Neither do those opinions reflect those of other individuals affiliated with any entity with which I am affiliated nor those of the entities themselves.



On Mon, Apr 19, 2010 at 1:53 PM, Laurie Gustin <lgustin (AT) utah (DOT) gov> wrote:


IDS115FC6X3
SUSE 10.2
I installed and compiled (Make Install) the utils2_ak package, but can't seem to get dostats to run. The error would indicate a path problem trying to find .so files. I checked and the file is in the directory /home/informix/lib/esql, and I modified my path to include this directory. I still get the error.
Please let me know if you have any clues, or if more information is needed.
Thanks
Laurie
informix@psdb05sat:~/utils ( mailto:informix@psdb05sat:%7E/utils )> ../dostats
../dostats: error while loading shared libraries: libifsql.so: cannot open shared object file: No such file or directory
PATH=/home/informix/bin:/home/informix/lib/esql:/home/infrmx/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/games:/opt/gnome/bin:/opt/kde3/bin:/usr/lib/mit/bin:/usr/lib/mit/sbin
informix@psdb05sat:/home/informix/lib/esql> ll libif*
-rw-r--r-- 2 informix informix 572676 2010-04-19 11:28 libifcobsql.a
-rwxr-xr-x 3 informix informix 400684 2009-12-15 04:35 libifcobsql.so
-rw-r--r-- 2 informix informix 572204 2010-04-19 11:28 libiffgisql.a
-rwxr-xr-x 3 informix informix 400616 2009-12-15 04:35 libiffgisql.so
-rw-r--r-- 2 informix informix 760596 2010-04-19 11:28 libifgen.a
-rwxr-xr-x 3 informix informix 458753 2010-04-19 11:28 libifgen.so
-rw-r--r-- 2 informix informix 536270 2010-04-19 11:28 libifgls.a
-rwxr-xr-x 3 informix informix 370270 2009-12-15 04:35 libifgls.so
-rw-r--r-- 2 informix informix 1370 2010-04-19 11:28 libifglx.a
-rwxr-xr-x 3 informix informix 6041 2009-12-15 04:35 libifglx.so
-rw-r--r-- 2 informix informix 246954 2010-04-19 11:28 libifos.a
-rwxr-xr-x 3 informix informix 166405 2009-12-15 04:35 libifos.so
-rw-r--r-- 2 informix informix 572244 2010-04-19 11:28 libifsql.a
-rwxr-xr-x 3 informix informix 400581 2009-12-15 04:35 libifsql.so
-rw-r--r-- 1 informix informix 26858 2010-04-19 11:28 libifxa.a
-rwxr-xr-x 3 informix informix 27995 2009-12-15 04:35 libifxa.so


Laurie Gustin
IT Programmer Analyst
Department of Public Safety
lgustin (AT) utah (DOT) gov
801-965-4410

_______________________________________________
Informix-list mailing list
Informix-list (AT) iiug (DOT) org
http://www.iiug.org/mailman/listinfo/informix-list

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.