mably / lncli-web

Light-weight web client for the lnd daemon written in NodeJS / Angular.
https://github.com/lightningnetwork/lnd
GNU Affero General Public License v3.0
184 stars 58 forks source link

Can not install on Raspberry PI #137

Open TobiasKaller opened 6 years ago

TobiasKaller commented 6 years ago

Hello,

I get the following Errors and Warning when installing the App on my Raspberry Pi 3:

image image image image

I'm not an expert so can anyone help me with this Problem pleas?

Thx

Tobias

PotatoBlood commented 6 years ago

What version of node do you have?

Working fine on my raspberry pi 3 with node v9.11.1

shocknet-justin commented 6 years ago

I receive similar errors on a clean Ubuntu 18.4 LTS install with Node 10.4 from: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

capdog@lm-lnd:~/lncli-web$ npm install
npm WARN deprecated babel-preset-es2015@6.24.1: 🙌  Thanks for using Babel: we r                                    ecommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, follo                                    wing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, foll                                    owing the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated graceful-fs@3.0.11: please upgrade to graceful-fs 4 for comp                                    atibility with current and future versions of Node.js
npm WARN deprecated jscs-preset-wikimedia@1.0.1: Deprecated in favour of eslint-                                    config-wikimedia. -- https://phabricator.wikimedia.org/T118941
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher                                     to avoid a RegExp DoS issue
npm WARN deprecated nomnom@1.8.1: Package no longer supported. Contact support@n                                    pmjs.com for more info.
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher                                     to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher                                     to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compa                                    tibility with current and future versions of Node.js

> bson@0.2.22 install /home/capdog/lncli-web/node_modules/bson
> (node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory '/home/capdog/lncli-web/node_modules/bson/build'
  CXX(target) Release/obj.target/bson/ext/bson.o
bson.target.mk:93: recipe for target 'Release/obj.target/bson/ext/bson.o' failed
make: Leaving directory '/home/capdog/lncli-web/node_modules/bson/build'

> sse4_crc32@5.2.0 install /home/capdog/lncli-web/node_modules/sse4_crc32
> node-gyp rebuild

make: Entering directory '/home/capdog/lncli-web/node_modules/sse4_crc32/build'
  CXX(target) Release/obj.target/crc32c_sse42/src/crc32c_sse42.o
  AR(target) Release/obj.target/crc32c_sse42.a
  COPY Release/crc32c_sse42.a
  CXX(target) Release/obj.target/sse4_crc32/src/crc32c.o
In file included from ../src/crc32c.cpp:18:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v                                    8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value                                    >*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarati                                    ons]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/crc32c.cpp:18:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/crc32c.cpp:18:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v                                    8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*                                    )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declaration                                    s]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/crc32c.cpp:18:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/crc32c.cpp:18:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v                                    8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is depr                                    ecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/crc32c.cpp:18:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/crc32c.cpp:18:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v                                    8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value                                    >*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarati                                    ons]
     ));
     ^
In file included from ../../nan/nan.h:51:0,
                 from ../src/crc32c.cpp:18:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
../src/crc32c.cpp: In function ‘Nan::NAN_METHOD_RETURN_TYPE calculateCrc(Nan::NA                                    N_METHOD_ARGS_TYPE)’:
../src/crc32c.cpp:224:79: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v                                    8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   crc = hwCrc32c(initCrc, (const char *)(*String::Utf8Value(strInput)), (size_t                                    )strInput->Utf8Length());
                                                                     ^
In file included from /home/capdog/.node-gyp/10.4.0/include/node/v8.h:26:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/crc32c.cpp:18:
/home/capdog/.node-gyp/10.4.0/include/node/v8.h:2846:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/capdog/.node-gyp/10.4.0/include/node/v8config.h:324:3: note: in definition                                     of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/crc32c.cpp:226:79: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v                                    8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   crc = swCrc32c(initCrc, (const char *)(*String::Utf8Value(strInput)), (size_t                                    )strInput->Utf8Length());
                                                                     ^
In file included from /home/capdog/.node-gyp/10.4.0/include/node/v8.h:26:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/node.h:63,
                 from ../../nan/nan.h:51,
                 from ../src/crc32c.cpp:18:
/home/capdog/.node-gyp/10.4.0/include/node/v8.h:2846:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/capdog/.node-gyp/10.4.0/include/node/v8config.h:324:3: note: in definition                                     of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
  SOLINK_MODULE(target) Release/obj.target/sse4_crc32.node
  COPY Release/sse4_crc32.node
make: Leaving directory '/home/capdog/lncli-web/node_modules/sse4_crc32/build'

> ursa@0.9.4 install /home/capdog/lncli-web/node_modules/ursa
> node-gyp rebuild

make: Entering directory '/home/capdog/lncli-web/node_modules/ursa/build'
  CXX(target) Release/obj.target/ursaNative/src/ursaNative.o
In file included from ../src/ursaNative.h:10:0,
                 from ../src/ursaNative.cc:3:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v                                    8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:840:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value                                    >*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarati                                    ons]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../src/ursaNative.h:9:0,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/ursaNative.h:10:0,
                 from ../src/ursaNative.cc:3:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v                                    8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:855:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*                                    )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declaration                                    s]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../src/ursaNative.h:9:0,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/ursaNative.h:10:0,
                 from ../src/ursaNative.cc:3:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v                                    8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:870:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is depr                                    ecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../src/ursaNative.h:9:0,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/ursaNative.h:10:0,
                 from ../src/ursaNative.cc:3:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v                                    8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1484:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Is                                    olate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value                                    >*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarati                                    ons]
     ));
     ^
In file included from ../src/ursaNative.h:9:0,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/capdog/.node-gyp/10.4.0/include/node/node.h:88:42: note: in definition of                                     macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_T                                    YPE RsaWrap::OpenPublicSshKey(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ursaNative.cc:389:13: error: invalid use of incomplete type ‘RSA {aka str                                    uct rsa_st}’
     obj->rsa->n = BN_bin2bn(data_n, n_length, NULL);
             ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:390:13: error: invalid use of incomplete type ‘RSA {aka str                                    uct rsa_st}’
     obj->rsa->e = BN_bin2bn(data_e, e_length, NULL);
             ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: In static member function ‘static RsaWrap* RsaWrap::expect                                    PrivateKey(RsaWrap*)’:
../src/ursaNative.cc:407:35: error: invalid use of incomplete type ‘RSA {aka str                                    uct rsa_st}’
     if ((obj == NULL) || (obj->rsa->d != NULL)) {
                                   ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_T                                    YPE RsaWrap::GetExponent(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ursaNative.cc:536:34: error: invalid use of incomplete type ‘RSA {aka str                                    uct rsa_st}’
     bignumToBuffer(args, obj->rsa->e);
                                  ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_T                                    YPE RsaWrap::GetPrivateExponent(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ursaNative.cc:552:34: error: invalid use of incomplete type ‘RSA {aka str                                    uct rsa_st}’
     bignumToBuffer(args, obj->rsa->d);
                                  ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_T                                    YPE RsaWrap::GetModulus(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ursaNative.cc:567:34: error: invalid use of incomplete type ‘RSA {aka str                                    uct rsa_st}’
     bignumToBuffer(args, obj->rsa->n);
                                  ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_T                                    YPE RsaWrap::CreatePrivateKeyFromComponents(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ursaNative.cc:1218:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->n = modulus;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1219:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->e = exponent;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1220:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->p = p;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1221:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->q = q;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1222:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->dmp1 = dp;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1223:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->dmq1 = dq;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1224:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->iqmp = inverseQ;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1225:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->d = d;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: In static member function ‘static Nan::NAN_METHOD_RETURN_T                                    YPE RsaWrap::CreatePublicKeyFromComponents(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/ursaNative.cc:1270:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->n = modulus;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc:1271:17: error: invalid use of incomplete type ‘RSA {aka st                                    ruct rsa_st}’
         obj->rsa->e = exponent;
                 ^~
In file included from /home/capdog/.node-gyp/10.4.0/include/node/openssl/crypto.                                    h:31:0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/bio.h:2                                    0,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/asn1.h:                                    16,
                 from /home/capdog/.node-gyp/10.4.0/include/node/openssl/rsa.h:1                                    6,
                 from ../src/ursaNative.h:13,
                 from ../src/ursaNative.cc:3:
/home/capdog/.node-gyp/10.4.0/include/node/openssl/ossl_typ.h:110:16: note: forw                                    ard declaration of ‘RSA {aka struct rsa_st}’
 typedef struct rsa_st RSA;
                ^~~~~~
../src/ursaNative.cc: At global scope:
../src/ursaNative.cc:100:36: warning: ‘Nan::NAN_METHOD_RETURN_TYPE bignumToBuffe                                    r(Nan::NAN_METHOD_ARGS_TYPE, BIGNUM*)’ defined but not used [-Wunused-function]
 static Nan::NAN_METHOD_RETURN_TYPE bignumToBuffer(Nan::NAN_METHOD_ARGS_TYPE arg                                    s,
                                    ^~~~~~~~~~~~~~
ursaNative.target.mk:97: recipe for target 'Release/obj.target/ursaNative/src/ur                                    saNative.o' failed
make: *** [Release/obj.target/ursaNative/src/ursaNative.o] Error 1
make: Leaving directory '/home/capdog/lncli-web/node_modules/ursa/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_module                                    s/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_proces                                    s.js:237:12)
gyp ERR! System Linux 4.15.0-22-generic
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy                                    p/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/capdog/lncli-web/node_modules/ursa
gyp ERR! node -v v10.4.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok

> grpc@1.12.2 install /home/capdog/lncli-web/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "/home/capdog/lncli-web/node_modules/grpc/src/node/extension_bin                                    ary/node-v64-linux-x64-glibc/grpc_node.node" is installed via remote

> electron@1.8.7 postinstall /home/capdog/lncli-web/node_modules/electron
> node install.js

Downloading SHASUMS256.txt
[============================================>] 100.0% of 5.74 kB (5.74 kB/s)

> lncliweb@1.1.0 install /home/capdog/lncli-web
> gulp bundle

[20:22:38] Using gulpfile ~/lncli-web/gulpfile.js
[20:22:38] Starting 'js-dist'...
[20:22:38] Initializing config.js file from example...
[20:22:38] Initializing defaults.js file from example...
[20:22:38] Finished 'js-dist' after 1.28 ms
[20:22:38] Starting 'install'...
[20:22:38] Finished 'install' after 19 μs
[20:22:38] Starting 'jscs'...
[20:22:38] Starting 'lint'...
[20:22:40] Finished 'lint' after 1.66 s
[20:22:40] Finished 'jscs' after 1.81 s
[20:22:40] Starting 'check'...
[20:22:40] Finished 'check' after 3.1 μs
[20:22:40] Starting 'bundlelnd'...
[20:22:40] Finished 'bundlelnd' after 6.96 ms
[20:22:40] Starting 'bundle'...
[20:22:40] Finished 'bundle' after 17 μs
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fse                                    vents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@                                    1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}                                    )
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 (node_modules/ursa):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ursa@0.9.4 install: `node-gyp re                                    build`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

added 1379 packages from 666 contributors and audited 8055 packages in 78.652s
found 153 vulnerabilities (147 low, 5 high, 1 critical)
  run `npm audit fix` to fix them, or `npm audit` for details

I've been having RPC issues now on multiple systems, trying to remotely access an encrypted wallet. Potentially related?

This error is present in windows cmd windows, but not GitBash

warn: Couldn't launch tail command! spawn tail ENOENT

Stadicus commented 6 years ago

The application is running on my Raspbbery Pi without issues. I am using Node v8.11.3, installed as described here: https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

$ curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
$ sudo apt-get install nodejs
$ sudo npm i npm@latest -g

I think I also ran npm audit / npm audit fix to close some vulnerabilites.

halfik commented 6 years ago

Node version is an issue. 8.x is required. I had tried with 10.x and it wont work.