Dependencies for Node JS V10 AIX
- Node.js Version: 10.14.0
- OS: AIX 7.2
- Scope (install, code, runtime, meta, other?): Install
- Module (and version) (if relevant):
Hi, I want to know exact List of Dependencies required for node Js v10.14.0 for AIX 7.2 machine.
- ideally following https://github.com/nodejs/node/blob/master/BUILDING.md#aix should be enough;
- make sure you have a gcc compiler that supports c++11 features; ideally
4.9.x. We use6.3
if you come across anything other than this please post here, I am happy to help.
/cc @shellberg for awareness and any extended help.
I was Unable to download the exact GCC rpm with it's dependencies for AIX 7.2 .
I don't know which version of these packages I need to install.
gcc gcc-c++ gcc-cpp gettext glib2 gmp info libffi libgcc libiconv libmpc libstdc++ libstdc++-devel libunistring libxml2 mpfr ncurses xz-libs zlib
can you please follow this suggestion https://github.com/nodejs/help/issues/1595#issuecomment-437002704 and the discussion thereon? I guess that will help you with the next steps forward.
* make sure you have a gcc compiler that supports c++11 features; ideally `4.9.x` . We use `6.3`
Just noting here for visibility but Node.js 10 on AIX needs GCC 6.3 or newer.
@richardlau - thanks. AFAIK, Node.js 10 works (runs) with a runtime lib that contains c++ 11 features, and according to gcc spec v4.9.x should have all of those. However, we have seen many field instances wherein people use v6.3 as their runtime lib for AIX 7.2 which caused undesired symbol errors at runtime such as this , and hence we decided to build with 6.3 I believe; there is nothing stopping us from using v4.9.x if we have a coherent build and run toolchain? /cc @shellberg who has dug to the bottom of it once.
Hello @harshsinghania As Gireesh commented, I have worked through this problem on multiple occasions... and helped out other specific instance/issues, and I included the full package names of what I used in #1595 (comment). What is important is the consistent set of gcc/g++ components (not always calculated correctly by the dependency calculator at Bull Freeware), which is why I marked them (by version) in the discussion on that issue, in the comment that @gireeshpunathil cited above. What is the source of RPMs that you are trying to use? I have observed problems if you mix'n'match sources of OSS componentry.
In addition to the immediate dependency set of gcc/g++ are the other related set in the closure of all dependencies, such as 'bash', etc. The method is much less prescriptive on exactly which version of these, and you may well be able to employ your current installed bash version satisfactorily, for example. There is also an ordering that is needed, although assembling all the RPMs for all the required (extra) components in a single working directory and using rpm -Uvh *.rpm will cause the rpm tool to calculate the required order (and, with some versions of the gettext RPM, I have at times had to use --nodeps to force the update).
Thankyou @gireeshpunathil @shellberg for your response..
I have installed GCC
still I'm getting runtime definition of the symbol was not found error

@harshsinghania - can you point your LIBPATH appropriately? for example, if your new ones are installed in '/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0', then you could set:
$ export LIBPATH=/opt/freeware/lib/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/pthread/ppc64:$LIBPATH
and try again?
Thankyou @gireeshpunathil LIBPATH=/opt/freeware/lib/gcc/powerpc-ibm-aix7.2.0.0/6.3.0/pthread/ppc64/ worked for me..
now the node is working fine :)