One of our requirements for an node.js Express based application being tested on our IBM i is for it to support Kerberos based authentication. Simple enough we thought - just find and install a suitable package (we are trying 'kerberos') with npm and use that. It wasn't quite that simple.
This package has a native module that requires compiling (node-gyp) which took this to a whole new level of needing to get the chroot and gcc compiler support installed. After much trial and error, trying 5733OPS option 3 then the more up-to-date scripts from ibmichroot, reading lots of posts here, updating gmake (to 4.2 as 4.1 had the virtual memory exhausted error), etc we have just about managed to get working.
The npm install of the kerberos package now completes but we receive the following error when trying to run a test script using it...
Error: Module did not self-register.
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/xx/node/krb/node_modules/kerberos/lib/kerberos.js:1:78
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
I can see from Google that this is a fairly common issue and is normally down to a mismatch with the version of node, which shouldn't be the case here. Has anybody else here encountered this or know of a possible solution?
Proud partner of The Ageas Bowl.
This email has been sent by and on behalf of one or more of Ageas (UK) Limited (registered no: 1093301 ), Ageas Insurance Limited (registered no: 354568), Ageas Retail Limited (registered no: 1324965), or a subsidiary of Ageas (UK) Limited (together "Ageas UK"). Ageas UK companies are registered in England and Wales, and each entity's registered office is Ageas House, Hampshire Corporate Park, Templars Way, Eastleigh SO53 3YA.
Ageas Retail Limited is authorised and regulated by the Financial Conduct Authority. Financial Services Register Number: 312468.
Ageas Insurance Limited is authorised by the Prudential Regulation Authority and regulated by the Financial Conduct Authority and the Prudential Regulation Authority. Financial Services Register Number: 202039
This e-mail together with any attachments are intended for the addressee only and may be private and confidential. If you are not the intended recipient, or the person responsible for delivering it to the intended recipient, you must not open any attachments, or copy, disclose, distribute, retain or use this e-mail, including any attachments, in any way whatsoever; please return it to us immediately using the reply facility on e-mail.
Consider the environment and think before you print this email.
This mailing list archive is Copyright 1997-2020 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