|
install ibmichroot from bitbucket (wasn't as straightforward as I wouldhave liked)
Note: I did not use a separate client to make the SSH connection to myIBMi LPAR - I just did it from QP2TERM and connected to the box I was already on.
Yes that sums it up. The thread looks like a mess of diatribe and--
techno babble but it really just boils down to being able to install
node packages that you need for your application. The fact that some
need to compile native c modules using node-gyp during the install is
usually something you only notice in passing on unix platforms. It
just works. On Windows it didn't work properly at all and there was a
big furore about it. There is a massive thread about it but
ultimately a reasonable simple workaround to get it going (
https://github.com/nodejs/node-gyp/issues/629#issuecomment-153196245)
was posted by a lovely lady by the name of "mousetraps" :)
Lo and behold, similar issues exist for the IBMi. Once you have
node.js installed via the newly available group PTF, it turns out that
in order to install some of these packages I had to do the following:
install ibmichroot from bitbucket (wasn't as straightforward as I
would have liked)
One off task
=========
Call qp2term
cd /qopensys/ibmichroot
wget
http://www.oss4aix.org/download/everything/RPMS/libstdc++-devel-4.8.3-
1.aix6.1.ppc.rpm rpm --ignoreos --ignorearch --replacepkgs --nodeps
-hUv
libstdc++-devel-4.8.3-1.aix6.1.ppc.rpm
Install packages, including those with native compiles
========================================
STRTCPSVR *SSHD (if need be)
call qp2term
ssh localhost
bash
export CC=gcc
npm install blah
Note: I did not use a separate client to make the SSH connection to my
IBMi LPAR - I just did it from QP2TERM and connected to the box I was
already on.
BUT I agree with Jon. We shouldn't have to worry about all this crap
just to install a package........and one day soon this will be the case I hope.
In many cases packages don't need to compile anything natively and you
don't need to worry about all this - just dive straight in to npm.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.