Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building keeweb on CentOS #935

Closed
hAbd0u opened this issue May 30, 2018 · 4 comments
Closed

Building keeweb on CentOS #935

hAbd0u opened this issue May 30, 2018 · 4 comments

Comments

@hAbd0u
Copy link

hAbd0u commented May 30, 2018

Hello,
I am trying to building keeweb on CentOS but it seems some errors during the compilation that I couldn't determine why it occurring:

[root@localhost keeweb]# npm install
npm WARN npm npm does not support Node.js v10.2.1
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/

> iltorb@https://registry.npmjs.org/iltorb/-/iltorb-1.0.13.tgz install /home/bilyes/Desktop/keeweb/node_modules/iltorb
> node-gyp rebuild

make: Entering directory `/home/bilyes/Desktop/keeweb/node_modules/iltorb/build'
  CC(target) Release/obj.target/decode/brotli/common/dictionary.o
  CC(target) Release/obj.target/decode/brotli/dec/bit_reader.o
  CC(target) Release/obj.target/decode/brotli/dec/decode.o
  CC(target) Release/obj.target/decode/brotli/dec/huffman.o
  CC(target) Release/obj.target/decode/brotli/dec/state.o
  CXX(target) Release/obj.target/decode/src/common/allocator.o
In file included from ../../nan/nan.h:190:0,
                 from ../src/common/allocator.cc:2:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
               ^
In file included from ../src/common/allocator.cc:2:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:833:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at /root/.node-gyp/10.2.1/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:848:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated (declared at /root/.node-gyp/10.2.1/include/node/node.h:164): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:863:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated (declared at /root/.node-gyp/10.2.1/include/node/node.h:157): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1477:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated (declared at /root/.node-gyp/10.2.1/include/node/node.h:171): Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
make: *** [Release/obj.target/decode/src/common/allocator.o] Error 1
make: Leaving directory `/home/bilyes/Desktop/keeweb/node_modules/iltorb/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/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_process.js:237:12)
gyp ERR! System Linux 3.10.0-693.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/bilyes/Desktop/keeweb/node_modules/iltorb
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 

> keytar@4.0.3 install /home/bilyes/Desktop/keeweb/node_modules/keytar
> node-gyp rebuild

make: Entering directory `/home/bilyes/Desktop/keeweb/node_modules/keytar/build'
  CXX(target) Release/obj.target/keytar/src/async.o
In file included from ../../nan/nan.h:190:0,
                 from ../src/async.cc:3:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
               ^
make: *** [Release/obj.target/keytar/src/async.o] Error 1
make: Leaving directory `/home/bilyes/Desktop/keeweb/node_modules/keytar/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/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_process.js:237:12)
gyp ERR! System Linux 3.10.0-693.el7.x86_64
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/bilyes/Desktop/keeweb/node_modules/keytar
gyp ERR! node -v v10.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok 
npm WARN lifecycle keeweb@1.6.3~postinstall: cannot run in wd %s %s (wd=%s) keeweb@1.6.3 cd desktop && npm install /home/bilyes/Desktop/keeweb
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: grunt-appdmg@0.4.0 (node_modules/grunt-appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for grunt-appdmg@0.4.0: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: appdmg@0.4.5 (node_modules/appdmg):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for appdmg@0.4.5: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
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: iltorb@1.0.13 (node_modules/iltorb):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: iltorb@https://registry.npmjs.org/iltorb/-/iltorb-1.0.13.tgz install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.0.3 (node_modules/keytar):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: keytar@4.0.3 install: `node-gyp rebuild`
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

moved 1 package in 40.458s
[root@localhost keeweb]# 

Those are the versions of node and npm:

[bilyes@localhost keeweb]$ node -v
v10.2.1
[bilyes@localhost keeweb]$ npm -v
5.6.0
@antelle
Copy link
Member

antelle commented May 30, 2018

I think, the problem is in the first line of your log, about versions. I would try fixing this and building again.

@hAbd0u
Copy link
Author

hAbd0u commented Jun 1, 2018

@antelle I down graded the node version to the one I used in windows and it is compiling now, however, I have another problem with grunt dev, even file-saver is installed :

[bilyes@localhost keeweb]$ ls node_modules/file-sa*
bower.json  demo 10.23.13  FileSaver.js  FileSaver.min.js  LICENSE.md  package.json  README.md

>> Local Npm module "grunt-contrib-deb" not found. Is it installed?
>> Local Npm module "grunt-appdmg" not found. Is it installed?

Running "gitinfo" task

Running "bower-install-simple:install" (bower-install-simple) task
Executing Bower (Command: install)



Running "webpack:js" (webpack) task
Version: webpack 2.6.1
     Asset     Size  Chunks                    Chunk Names
    app.js  1.17 MB       0  [emitted]  [big]  app
 vendor.js   534 kB       1  [emitted]  [big]  vendor
stats.json  0 bytes          [emitted]         

 [172] ./bower_components/baron/baron.min.js 13.8 kB {1} [built]
       cjs require baron [16] ./app/scripts/mixins/scrollable.js 5:12-28
       single entry baron [246] multi jquery underscore backbone kdbxweb baron pikaday filesaver qrcode argon2-asm argon2-wasm argon2 vendor:100004
 [173] ./bower_components/argon2-browser/docs/dist/argon2-asm.min.js 92.3 kB {1} [built]
       cjs require argon2-asm [91] ./app/scripts/util/kdbxweb-init.js 123:29-50
       single entry argon2-asm [246] multi jquery underscore backbone kdbxweb baron pikaday filesaver qrcode argon2-asm argon2-wasm argon2 vendor:100008
 [174] ./bower_components/argon2-browser/docs/dist/argon2.min.js 40.4 kB {1} [built]
       cjs require argon2 [91] ./app/scripts/util/kdbxweb-init.js 43:39-56
       single entry argon2 [246] multi jquery underscore backbone kdbxweb baron pikaday filesaver qrcode argon2-asm argon2-wasm argon2 vendor:100010
 [246] multi jquery underscore backbone kdbxweb baron pikaday filesaver qrcode argon2-asm argon2-wasm argon2 148 bytes {1} [built]
    + 232 hidden modules

ERROR in multi jquery underscore backbone kdbxweb baron pikaday filesaver qrcode argon2-asm argon2-wasm argon2
Module not found: Error: Can't resolve 'filesaver' in '/home/bilyes/Desktop/gitrepo/keeweb'
 @ multi jquery underscore backbone kdbxweb baron pikaday filesaver qrcode argon2-asm argon2-wasm argon2

ERROR in ./app/scripts/views/details/details-view.js
Module not found: Error: Can't resolve 'filesaver' in '/home/bilyes/Desktop/gitrepo/keeweb/app/scripts/views/details'
 @ ./app/scripts/views/details/details-view.js 34:16-36
 @ ./app/scripts/views/app-view.js
 @ ./app/scripts/app.js

ERROR in ./app/scripts/plugins/plugin-api.js
Module not found: Error: Can't resolve 'filesaver' in '/home/bilyes/Desktop/gitrepo/keeweb/app/scripts/plugins'
 @ ./app/scripts/plugins/plugin-api.js 12:15-35
 @ ./app/scripts/plugins/plugin.js
 @ ./app/scripts/plugins/plugin-manager.js
 @ ./app/scripts/app.js

ERROR in ./app/scripts/views/settings/settings-file-view.js
Module not found: Error: Can't resolve 'filesaver' in '/home/bilyes/Desktop/gitrepo/keeweb/app/scripts/views/settings'
 @ ./app/scripts/views/settings/settings-file-view.js 15:16-36
 @ ./app/scripts/views/settings ^\.\/settings\-.*\-view$
 @ ./app/scripts/views/settings/settings-view.js
 @ ./app/scripts/views/app-view.js
 @ ./app/scripts/app.js
Warning: � Use --force to continue.

Aborted due to warnings.


Execution Time (2018-05-31 20:53:20 UTC-4)
loading tasks                  2.2s  ▇▇▇▇▇ 14%
bower-install-simple:install  371ms  ▇ 2%
eslint:app                     5.3s  ▇▇▇▇▇▇▇▇▇▇▇ 33%
eslint:grunt                  210ms  ▇ 1%
webpack:js                     7.5s  ▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 48%
Total 15.8s

@antelle
Copy link
Member

antelle commented Jun 1, 2018

Can it build develop branch? Filesaver issue was fixed there.

@hAbd0u
Copy link
Author

hAbd0u commented Jun 1, 2018

I moved the version I built on window to CentOS, and now every thing is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants