If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > libifsql.so: cannot open shared object file

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-26-04, 03:42
Rodion Rodion is offline
Registered User
 
Join Date: Nov 2003
Location: Moldova
Posts: 25
libifsql.so: cannot open shared object file

Linux RH 7.3
IDS 9.21

Error:
The C Language Module </usr/informix/mylib/libmdt.so> can't load
reason: libifsql.so: cannot open shared object file: No such file or
directory

libifsql.so present : I see it in /usr/informix/lib/esql
env Path was setup (OK -??):
LD_LIBRARY_PATH=/usr/informix/lib:/usr/informix/lib/esql

Permissions(OK -??):

[informix@PROLIANT1 esql]$ ls -ld /usr/informix
drwxr-xr-x 24 informix informix 4096 Feb 23 16:35 /usr/informix
[informix@PROLIANT1 esql]$ ls -ld /usr/informix/lib
drwxr-xr-x 8 informix informix 4096 Mar 25 19:22 /usr/informix/lib
[informix@PROLIANT1 esql]$ ls -ld /usr/informix/lib/esql
drwxr-xr-x 2 informix informix 4096 Mar 25 18:50
/usr/informix/lib/esql
[informix@PROLIANT1 esql]$ ls -ld /usr/informix/lib/esql/libifsql.so
-rwxr-xr-x 3 informix informix 281855 Nov 6 1999
/usr/informix/lib/esql/libifsql.so
Reply With Quote
  #2 (permalink)  
Old 03-26-04, 06:19
gurey gurey is offline
Registered User
 
Join Date: Aug 2003
Location: Argentina
Posts: 780
Re: libifsql.so: cannot open shared object file

Quote:
Originally posted by Rodion
Linux RH 7.3
IDS 9.21

Error:
The C Language Module </usr/informix/mylib/libmdt.so> can't load
reason: libifsql.so: cannot open shared object file: No such file or
directory

libifsql.so present : I see it in /usr/informix/lib/esql
env Path was setup (OK -??):
LD_LIBRARY_PATH=/usr/informix/lib:/usr/informix/lib/esql

Permissions(OK -??):

[informix@PROLIANT1 esql]$ ls -ld /usr/informix
drwxr-xr-x 24 informix informix 4096 Feb 23 16:35 /usr/informix
[informix@PROLIANT1 esql]$ ls -ld /usr/informix/lib
drwxr-xr-x 8 informix informix 4096 Mar 25 19:22 /usr/informix/lib
[informix@PROLIANT1 esql]$ ls -ld /usr/informix/lib/esql
drwxr-xr-x 2 informix informix 4096 Mar 25 18:50
/usr/informix/lib/esql
[informix@PROLIANT1 esql]$ ls -ld /usr/informix/lib/esql/libifsql.so
-rwxr-xr-x 3 informix informix 281855 Nov 6 1999
/usr/informix/lib/esql/libifsql.so
Hi Rodion,

Is this recent installation ?.
What happend if you run oninit -V ?

Gustavo.
Reply With Quote
  #3 (permalink)  
Old 03-26-04, 12:47
astrue astrue is offline
Registered User
 
Join Date: Dec 2002
Location: Portland, OR, USA
Posts: 26
Re: libifsql.so: cannot open shared object file

It appears to me that there is a discrepancy between the library names.

Informix is looking to access the shared object in /usr/informix/mylib, whereas your LD_LIBRARY_PATH thinks the Informix root is /usr/informix/lib

Without knowing the difference between ../lib and ../mylib, or how you have things installed, it still looks fishy that those don't match...

Also, and forgive me if this is a stupid question: Do you have an Informix Client SDK loaded on the box? That's where those libraries are supposed to come from, AFAIK. And that has ramifications for your compile and link process with your C or other application code that will want to access the DB (i.e. have to specify compile and link include options to pull in Informix API's).

Hope this helps.

-Joe
Reply With Quote
  #4 (permalink)  
Old 03-26-04, 12:56
Rodion Rodion is offline
Registered User
 
Join Date: Nov 2003
Location: Moldova
Posts: 25
Re: libifsql.so: cannot open shared object file

Quote:
Originally posted by gurey
Hi Rodion,

Is this recent installation ?.
What happend if you run oninit -V ?

Gustavo.
Yes, recent

[informix@tPROLIANT1 informix]$ oninit -v
Checking group membership to determine server run modesucceeded
Reading configuration file '/usr/informix/etc/onconfig'...succeeded
Creating /INFORMIXTMP/.infxdirs ... succeeded
Creating infos file "/usr/informix/etc/.infos.PROLIANT" ... "/usr/informix/etc/.conf.PROLIANT" ... succeeded
Writing to infos file ... succeeded
Checking config parameters...succeeded
Allocating and attaching to shared memory...succeeded
Creating resident pool 24690 kbytes...succeeded
Creating buffer pool 384002 kbytes...succeeded
Initializing rhead structure...succeeded
Initializing ASF ...succeeded
Initializing Dictionary Cache and SPL Routine Cache...succeeded
Bringing up ADM VP...succeeded
Creating VP classes...succeeded
Onlining 1 additional cpu vps...succeeded
Onlining 22 IO vps...succeeded
Forking main_loop thread...succeeded
Initializing DR structures...succeeded
Forking 1 'soctcp' listener threads...succeeded
Starting tracing...succeeded
Initializing 12 flushers...succeeded
Initializing log/checkpoint information...succeeded
Opening primary chunks...succeeded
Opening mirror chunks...succeeded
Initializing dbspaces...succeeded
Validating chunks...succeeded
Initialize Async Log Flusher...succeeded
Forking btree cleaner...succeeded
[informix@tPROLIANT1 informix]$ Initializing DBSPACETEMP list
Checking database partition index...succeeded
Checking location of physical log...succeeded
Initializing dataskip structure...succeeded
Checking for temporary tables to drop
Forking onmode_mon thread...succeeded
Verbose output complete: mode = 5

[informix@tPROLIANT1 informix]$
-------------------------------------

AND ONLINE.LOG

19:55:24 Informix Dynamic Server 2000 Started.
19:55:25 Segment locked: addr=0x10000000, size=418852864

Fri Mar 26 19:55:26 2004

19:55:26 Event alarms enabled. ALARMPROG = '/usr/informix/etc/log_full.sh'
19:55:26 Booting Language <c> from module <>
19:55:26 Loading Module <CNULL>
19:55:26 Booting Language <builtin> from module <>
19:55:26 Loading Module <BUILTINNULL>
19:55:33 Informix Dynamic Server 2000 Version 9.21.UC3 Software Serial Number AAC#J892900
19:55:33 Informix Dynamic Server 2000 Initialized -- Shared Memory Initialized.

19:55:33 Physical Recovery Started.
19:55:33 Physical Recovery Complete: 0 Pages Restored.

19:55:33 Logical Recovery Started.
19:55:33 10 recovery worker threads will be started.
19:55:37 Logical Recovery Complete.
0 Committed, 0 Rolled Back, 0 Open, 0 Bad Locks

19:55:38 Dataskip is now OFF for all dbspaces
19:55:38 On-Line Mode
19:55:38 Checkpoint Completed: duration was 0 seconds.
19:55:38 Checkpoint loguniq 24407, logpos 0x2a8018
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On