× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



To get ibmichroot I had to generate my ssh key pairs and associate the public key with my profile on bitbucket.org - then :
CALL QP2TERM
# Start the SSH agent
eval $(ssh-agent -s)
# Add my identity to the agent
ssh-add ~/.ssh/id_rsa
cd /qopensys
git clone git@xxxxxxxxxxxxx:litmis/ibmichroot.git




-----Original Message-----
From: OpenSource [mailto:opensource-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Turner
Sent: 14 July 2016 00:43
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] gmake: *** virtual memory exhausted. Stop.

I will document the ibmichroot pain I went through. I was all around getting ssh authentication working properly and have no agent running by default.

With regard to your second point, if I do this:
Call qp2term
Bash
and then try to use npm, gmake fails with the "virtual memory exhausted" error

if I do this:
call qp2term
ssh localhost

then I end up in "bsh" (not "bash") and npm and gmake work BUT you cannot simply set environment variables with "export". Instead you have to do (for example) "CC=gcc" followed by "export CC"

So that is why I go to "bash" before doing anything - simple laziness. It enables me to set environment variables with one statement "export CC=gcc"

This behaviour seems consistent across all our LPARS - some of which are virgin set-ups.

-----Original Message-----
From: OpenSource [mailto:opensource-bounces@xxxxxxxxxxxx] On Behalf Of Aaron Bartell
Sent: 14 July 2016 00:32
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] gmake: *** virtual memory exhausted. Stop.

install ibmichroot from bitbucket (wasn't as straightforward as I would
have liked)

Would love to get feedback so I can make the documentation/installation easier.


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.

What is accomplished by doing a "ssh localhost"? You still end up in QP2TERM, though maybe in a new shell (i.e. bash). But you could enter a bash shell by typing "bash <enter>" on the command line.



Aaron Bartell
litmis.com - Services for open source on IBM i


On Wed, Jul 13, 2016 at 6:20 PM, Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
wrote:

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.

--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To post a message email: OpenSource@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/opensource.

___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.
--
This is the IBMi Open Source Roundtable (OpenSource) mailing list To post a message email: OpenSource@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/opensource
or email: OpenSource-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/opensource.

___________________________________________
This email has been scanned by iomartcloud.
http://www.iomartcloud.com/


________________________________

NOTICE: The information in this electronic mail transmission is intended by CoralTree Systems Ltd for the use of the named individuals or entity to which it is directed and may contain information that is privileged or otherwise confidential. If you have received this electronic mail transmission in error, please delete it from your system without copying or forwarding it, and notify the sender of the error by reply email or by telephone, so that the sender's address records can be corrected.



--------------------------------------------------------------------------------


CoralTree Systems Limited
25 Barnes Wallis Road
Segensworth East, Fareham
PO15 5TT

Company Registration Number 5021022.
Registered Office:
12-14 Carlton Place
Southampton, UK
SO15 2EA
VAT Registration Number 834 1020 74.

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.