Thanks for the pointers. I went round and round in circles for a while because I could not seem to set CC at all. A simple "export CC=/usr/bin/gcc" just said "identifier not found".
Then it dawned on me that I may not be using bash, so I did "CC=/usr/bin/gcc; export CC" and that worked - and so did the npm install :)
Just to double check, I then did:
ssh localhost
bash
export CC=/usr/bin/gcc
npm install hiredis
that worked also.
Presumably there is some way to have CC set permanently?
-----Original Message-----
From: OpenSource [mailto:opensource-bounces@xxxxxxxxxxxx] On Behalf Of Kevin Adler
Sent: 13 July 2016 21:18
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Subject: Re: [IBMiOSS] gmake: *** virtual memory exhausted. Stop.
"OpenSource" <opensource-bounces@xxxxxxxxxxxx> wrote on 07/13/2016
03:10:00 PM:
From: Kevin Turner <kevin.turner@xxxxxxxxxxxxxxx>
To: IBMi Open Source Roundtable <opensource@xxxxxxxxxxxx>
Date: 07/13/2016 03:10 PM
Subject: Re: [IBMiOSS] gmake: *** virtual memory exhausted. Stop.
Sent by: "OpenSource" <opensource-bounces@xxxxxxxxxxxx>
That's interesting - thanks. So using SSH I don't get that error any
more. However, gmake fails with " gmake: cc: Command not found"
Is the a config step required?
My guess is it's not trying to find gcc for whatever reason and instead is just trying to find the cc program (default Unix C compiler). You can usually override this with the CC environment variable to use GCC (or whatever compiler you want) instead:
export CC=gcc
npm install hiredis
--
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.