So, now that you have found all of the missing libraries, set LD_LIBRARY_PATH to a path list that includes the locations of those libs and export it. So, something like:
and wherever else you need oninit to look for shared libraries.
Art S. Kagel, President and Principal Consultant
ASK Database Management Corp.
Original Message:
Sent: Tue July 04, 2023 12:32 PM
From: Jacob Salomon
Subject: V14.10.FC9 installer missing librarie(s)?
I apologize for the length of this post. But I need to show that I am indeed trying to follow direction. Also, I researched & double-checked every assertion so that I don't waste your time with my errors. I've taken 2-1/2 hours to compose this missive.
Well, Paul, I told y'all about oninit -t and you promptly returned the favor with the ldd command, Quite revealing.
First, I change the syntax of my symlink. Now:
informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ ls -l libisi.so.2
lrwxrwxrwx 1 informix informix 42 Jul 4 11:02 libisi.so.2 -> /ifmx/ids.14.10.FC10/lib/libisi_gsk.so.2.2
That is the full path name of the target library file. My first run of ldd; it looks quite like your output, Paul:
informix@maxwell2l:~$ ldd $(which oninit)
linux-vdso.so.1 (0x00007fff313d2000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f7b646ad000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f7b646a8000)
libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f7b6466e000)
libelf.so.1 => /lib/x86_64-linux-gnu/libelf.so.1 (0x00007f7b64650000)
libpam.so.0 => /lib/x86_64-linux-gnu/libpam.so.0 (0x00007f7b6463c000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f7b64412000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f7b6432b000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f7b6430b000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f7b640e3000)
/lib64/ld-linux-x86-64.so.2 (0x00007f7b646c6000)
libz.so.1 => /lib/x86_64-linux-gnu/libz.so.1 (0x00007f7b640c7000)
libaudit.so.1 => /lib/x86_64-linux-gnu/libaudit.so.1 (0x00007f7b64097000)
libcap-ng.so.0 => /lib/x86_64-linux-gnu/libcap-ng.so.0 (0x00007f7b6408f000)
Notice anything missing? I see no mention of the allegedly missing library, /ifmx/ids.14.10.FC10/lib/libisi.so.2
That was mystery[1]. Perhaps, however, it is loaded at run time rather than being linked in at "ld" time. (Also, is there any significance to /lib64/ld-linux-x86-64.so.2?)
Now for mystery [2]: Another run o oninit -t.
informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ oninit -t | head -2
cannot load library /ifmx/ids.14.10.FC10/lib/libisi.so
libgsk8iccs_64.so: cannot open shared object file: No such file or directory
HEY, a different error message! Now it finds the shared library but can't load it owing to another missing shared library.
Let's run ldd against our no-longer-missing shared library.
informix@maxwell2l:~$ ldd /ifmx/ids.14.10.FC10/lib/libisi.so.2
linux-vdso.so.1 (0x00007fffb8881000)
libgsk8iccs_64.so => not found
libgsk8ssl_64.so => not found
libgsk8km_64.so => not found
libgsk8acmeidup_64.so => not found
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f49d2bd8000)
/lib64/ld-linux-x86-64.so.2 (0x00007f49d3075000)
That's mystery[3]: YIKES!! I am SOOOO MESSED UP HERE! 4 files that it depends on are not found! And neither Synaptec package manager nor the Linux Mint software manager mention these gsk sources.
Now Scot asked another vital question:
> Did you look in /usr/local/ibm/gsk8_64? Are the actual files there?
Let's have a look, after again running installgskit (yes, as root)
informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ ls -ld /usr/local/ibm/gsk8_64/*
drwxr-xr-x 2 root sys 4096 Jul 4 11:49 /usr/local/ibm/gsk8_64/bin
-rwxr-xr-x 1 root sys 211 Oct 8 2021 /usr/local/ibm/gsk8_64/copyright
drwxr-xr-x 2 root sys 4096 Oct 8 2021 /usr/local/ibm/gsk8_64/docs
drwxr-xr-x 2 root sys 4096 Oct 8 2021 /usr/local/ibm/gsk8_64/inc
drwxr-xr-x 4 root sys 4096 Jul 4 11:49 /usr/local/ibm/gsk8_64/lib64
-rwxr-xr-x 1 root sys 5616 Oct 8 2021 /usr/local/ibm/gsk8_64/ReadMe.txt
Peeking into the bin I have:
informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ ls -ld /usr/local/ibm/gsk8_64/bin/*
-rwxr-xr-x 1 root sys 14954640 Oct 8 2021 /usr/local/ibm/gsk8_64/bin/gsk8capicmd_64
-rwxr-xr-x 1 root sys 9792 Oct 8 2021 /usr/local/ibm/gsk8_64/bin/gsk8ver_64
Scot also mentioned a bunch of symlinks created by installgskit. I got'em too, I won't print there here; no reason they should be different from Scot's output. And I ran the target .so files through ls -l so I know all do exist. More interesting: Scot's output has 13 files; mine has 14; I also have: /usr/lib64/ld-linux-x86-64.so.2 -> /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
Now that we know how messed up my installation is, how do I unmess up? (unmess down?)
This reminds me of the dentist looking in my mouth and proclaiming "What a Challenge!".
Finally, Art's suggestion about LD_LIBRARY_PATH: Currently it's not set. What would you suggest I set it to?
WHEW!! Grateful for the help here!
------------------------------
Jacob Salomon
---
Nobody goes there anymore, it's too crowded. --Attr: Yogi Berra
------------------------------
Original Message:
Sent: Mon July 03, 2023 08:51 PM
From: Paul Watson
Subject: V14.10.FC9 installer missing librarie(s)?
what does ldd oninit show ? Got the correct perms on the oninit binary ? Run a strace on oninit -t ?
From a FC6 system
-rwxr-xr-x. 1 root informix 137288 Dec 9 2021 libisi_gsk.so.2.1
lrwxrwxrwx. 1 root root 19 Dec 9 2021 libisi.so.2 -> ./libisi_gsk.so.2.1
/home/informix> ldd which oninit
linux-vdso.so.1 => (0x00007ffd7ab5a000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f664f7f2000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f664f5ee000)
libcrypt.so.1 => /lib64/libcrypt.so.1 (0x00007f664f3b7000)
libelf.so.1 => /lib64/libelf.so.1 (0x00007f664f19f000)
libpam.so.0 => /lib64/libpam.so.0 (0x00007f664ef90000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f664ec88000)
libm.so.6 => /lib64/libm.so.6 (0x00007f664e986000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f664e770000)
libc.so.6 => /lib64/libc.so.6 (0x00007f664e3a2000)
/lib64/ld-linux-x86-64.so.2 (0x00007f664fa0e000)
libfreebl3.so => /lib64/libfreebl3.so (0x00007f664e19f000)
libz.so.1 => /lib64/libz.so.1 (0x00007f664df89000)
libaudit.so.1 => /lib64/libaudit.so.1 (0x00007f664dd60000)
libcap-ng.so.0 => /lib64/libcap-ng.so.0 (0x00007f664db5a000)
Thanks for the oninit -t - not sure I knew it existed - don't see it doc'd
On 7/3/2023 7:18 PM, Jacob Salomon via IBM TechXchange Community wrote:
010001891e4382f7-b1ec110c-6f51-433e-9bc4-204612d2cb0d-000000@email.amazonses.com"> | Re: V14.10.FC9 installer missing librarie(s)? | | | | | | Hi Scot & family. Here's what my system shows, now that I've added that symlink: $ cd $INFORMIXDIR/lib informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ ls -l libis* -rwxr-xr-x 1 root informix 142096 May 8 15:34 libisi_gsk.so.2.2 lrwxrwxrwx 1 informix informix 19 Jul 3 13:21 libisi.so.2 -> ./libisi_gsk.so.2.2 So that's in order. Next, regarding the gsk libraries: /ifmx/ids.14.10.FC10/lib$ dpkg -l | grep gsk ii gskcrypt64 8.0-55.26 amd64 IBM GSKit Cryptography Runtime ii gskssl64 8.0-55.26 amd64 IBM GSKit SSL Runtime With Acme Toolkit (I kinda squeezed out some of the spaces so it wouldn't line-wrap.) Still: $ oninit -t | head -2 cannot load library /ifmx/ids.14.10.FC10/lib/libisi.so.2 libgsk8iccs_64.so: cannot open shared object file: No such file or directory Whaddayamean, "not found"?! It's right there! I'm showing it to you in $INFORMIXDIR/lib By the way, I had run installgskit. Does not give any meaningful output but $? was 0 so no error exit. informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ sudo su - root@maxwell2l:~# cd /ifmx/ids.14.10.FC10/gskit root@maxwell2l:/ifmx/ids.14.10.FC10/gskit# ./installgskit Performing GSKit installation for Linux ... root@maxwell2l:/ifmx/ids.14.10.FC10/gskit# echo $? 0 So my problem is trying to out-stubborn me. Hey, I'm still open to solutions! What could I still be missing? Thanks for helping me here. ------------------------------ Jacob Salomon --- Nobody goes there anymore, it's too crowded. --Attr: Yogi Berra ------------------------------ | | | Reply to Group Online View Thread Recommend Forward Flag as Inappropriate | | Original Message: Sent: Sun July 02, 2023 10:50 PM | | | |
Original Message:
Sent: 7/3/2023 8:18:00 PM
From: Jacob Salomon
Subject: RE: V14.10.FC9 installer missing librarie(s)?
Hi Scot & family.
Here's what my system shows, now that I've added that symlink:
$ cd $INFORMIXDIR/lib
informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ ls -l libis*
-rwxr-xr-x 1 root informix 142096 May 8 15:34 libisi_gsk.so.2.2
lrwxrwxrwx 1 informix informix 19 Jul 3 13:21 libisi.so.2 -> ./libisi_gsk.so.2.2
So that's in order. Next, regarding the gsk libraries:
/ifmx/ids.14.10.FC10/lib$ dpkg -l | grep gsk
ii gskcrypt64 8.0-55.26 amd64 IBM GSKit Cryptography Runtime
ii gskssl64 8.0-55.26 amd64 IBM GSKit SSL Runtime With Acme Toolkit
(I kinda squeezed out some of the spaces so it wouldn't line-wrap.)
Still:
$ oninit -t | head -2
cannot load library /ifmx/ids.14.10.FC10/lib/libisi.so.2
libgsk8iccs_64.so: cannot open shared object file: No such file or directory
Whaddayamean, "not found"?! It's right there! I'm showing it to you in $INFORMIXDIR/lib
By the way, I had run installgskit. Does not give any meaningful output but $? was 0 so no error exit.
informix@maxwell2l:/ifmx/ids.14.10.FC10/lib$ sudo su -
root@maxwell2l:~# cd /ifmx/ids.14.10.FC10/gskit
root@maxwell2l:/ifmx/ids.14.10.FC10/gskit# ./installgskit
Performing GSKit installation for Linux ...
root@maxwell2l:/ifmx/ids.14.10.FC10/gskit# echo $?
0
So my problem is trying to out-stubborn me. Hey, I'm still open to solutions! What could I still be missing?
Thanks for helping me here.
------------------------------
Jacob Salomon
---
Nobody goes there anymore, it's too crowded. --Attr: Yogi Berra
Original Message:
Sent: Sun July 02, 2023 10:50 PM
From: Scot Jenkins
Subject: V14.10.FC9 installer missing librarie(s)?
Jacob,
Here's what my system shows:
$ cd /opt/ibm/informix/ids14.10.FC10DE/lib
$ ls -l libisi*
lrwxrwxrwx 1 informix informix 19 Mar 18 05:26 libisi.so.2 -> ./libisi_gsk.so.2.2
-rwxr-xr-x 1 root informix 142096 Mar 18 04:59 libisi_gsk.so.2.2
-rwxr-xr-x 1 informix informix 214480 Mar 18 05:26 libisi_o10.so.2.2
-rwxr-xr-x 1 informix informix 218152 Mar 18 05:26 libisi_o11.so.2.2
-rwxr-xr-x 1 informix informix 218024 Mar 18 05:26 libisi_oos.so.2.2
As Paul said it should be a symlink to one of the gskit libraries,
libisi_gsk.so.2.2 in this case.
Since you are on a Ubuntu/Debian based system, see if the gskit
packages were installed:
$ dpkg -l | grep 'gsk'
That's a lowercase 'L' flag. It should return something like
gskcrypt64 and gskssl64 with some version info. These should have
been installed during the Informix installation.
I'm on 64-bit Slackware and although it doesn't use RPM to manage
packages, since I had the rpm command installed, when I installed
Informix, it installed these two RPM packages automatically:
gskssl64-8.0-55.26.x86_64
gskcrypt64-8.0-55.26.x86_64
The files were installed under /usr/local/ibm/gsk8_64.
Check if you have that directory. If so, gskit should be installed.
If not, you should have a directory "gskit" under your Informix
install location, e.g. /ifmx/ids.14.10.FC10/gskit.
On my system here's what it contains:
$ pwd
/opt/ibm/informix/ids14.10.FC10DE/gskit
$ ls -l
total 20316
-rw-r--r-- 1 informix informix 2696 Mar 7 17:53 README
-rw-r--r-- 1 informix informix 3921920 Mar 7 17:51 gskcrypt64-8.0.55.26a.linux.x86_64.tar
-rw-r--r-- 1 informix informix 16865280 Mar 7 17:51 gskssl64-8.0.55.26a.linux.x86_64.tar
-rwxr--r-- 1 root informix 6711 Mar 7 19:38 installgskit
You should be able to run the installgskit script as root.
If that does not work, you can extract .deb packages from each
of the tarballs and use "dpkg -i" to install them.
scot
Original Message:
Sent: Sun July 02, 2023 07:51 PM
From: Jacob Salomon
Subject: V14.10.FC9 installer missing librarie(s)?
Greetings Art & Company.
There is a down side to actually having a job: I don't have a lot of time to finish installing my Informix stuff. (I'd rather have the job, of course; not the starving artist type. <grin>)
Well, I have installed it and created a reasonable (IMHO) ONCONFIG and SQLHOSTS file, as well as appropriate entries in /etc/services. I don't want to install the CSDK until I can at least run dbaccess and dbaccessdemo. I had downloaded release ids.14.10.FC10 on my Linux Mint (based on Ubuntu).
System info:
$ uname -a
Linux maxwell2l 5.15.0-75-generic #82-Ubuntu SMP Tue Jun 6 23:10:23 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
And the latest run of oninit -t gives one error message:
$ oninit -t
cannot access /ifmx/ids.14.10.FC10/lib/libisi.so.2
No such file or directory (errno 2)
Look familiar on this thread?
This is an extremely long thread, even for me, who kids about my inability to be concise. I need a bottom line solution, which I cannot dig out of this thread. Someone tell me: "Jake do this and this..."
I should be able to get back on this over the July 4 holiday. Once I have that squared away I can install the CSDK, followed by Jonathan Leffler's DBD::Informix.
Thanks for comprehensible advice on this.
------------------------------
Jacob Salomon
---
Nobody goes there anymore, it's too crowded. --Attr: Yogi Berra