Make sure you have "libstdc++-10-2.ppc" also installed as that will create the symlinks in the default path.
# dump -X64 -Hov ./node
***Import File Strings***
INDEX PATH BASE MEMBER
0 /usr/lib:/lib:/opt/freeware/lib/pthread/ppc64
1 libperfstat.a shr_64.o
2 libdl.a shr_64.o
3 libstdc++.a libstdc++.so.6
4 libgcc_s.a shr.o
5 libpthreads.a shr_xpg5_64.o
6 libc.a shr_64.o
# rpm -qf /opt/freeware/lib/pthread/ppc64/libstdc++.a
libstdc++-10-2.ppc
# ls -l /opt/freeware/lib/pthread/ppc64/libstdc++.a
lrwxrwxrwx 1 root system 61 Dec 12 07:59 /opt/freeware/lib/pthread/ppc64/libstdc++.a -> ../../gcc/powerpc-ibm-aix7.2.0.0/10/pthread/ppc64/libstdc++.a
------------------------------
Ayappan P
------------------------------
Original Message:
Sent: Tue December 12, 2023 06:17 PM
From: Mouni N
Subject: AIX 7.2 Node version 20 issue with libstdc++
I am on an AIX 7.2 server and I installed the following RPMs
libgcc10-10.3.0-6.ppc
libstdc++10-10.3.0-6.ppc
I then installed node 20.10.0 from Node.js
# ./node -v
Could not load program ./node:
Dependent module libstdc++.a(libstdc++.so.6) could not be loaded.
Could not load module libstdc++.a(libstdc++.so.6).
System error: No such file or directory
Works fine on AIX 7.3 and node 20. Node 18 works fine with libstdc++ 8 on AIX 7.2. Issue is only on AIX 7.2 with libstdc++ 10 and node 20. If I set the LIBPATH to /opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/10/pthread/ppc64, it works
# ./node -v
v20.10.0
------------------------------
Mouni N
------------------------------
#AIXOpenSource