Skip to content
This repository has been archived by the owner on Jul 12, 2018. It is now read-only.

Failing to install on Ubuntu 16.04 with Node 6.7.0 #33

Open
teajaymars opened this issue Oct 10, 2016 · 0 comments
Open

Failing to install on Ubuntu 16.04 with Node 6.7.0 #33

teajaymars opened this issue Oct 10, 2016 · 0 comments

Comments

@teajaymars
Copy link

I've just cloned a fresh VirtualBox from osboxes.org to try out this project. I've installed Node 6.7 and tried to install this project. If there's a simple tweak I can try I'll change my setup rather than wait for an upstream solution.

Here's my Bash log:

osboxes@osboxes:~$ sudo npm install -g node-gtk
[sudo] password for osboxes: 

> node-gtk@0.0.20 install /usr/lib/node_modules/node-gtk
> if [ "$(uname)" = "Darwin" ] && [ "$(which brew)" != "" ]; then export PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig; fi; node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Tried to download: https://github.com/WebReflection/node-gtk/releases/download/0.0.16/node-v48-linux-ia32.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for node-gtk@0.0.20 and node@6.7.0 (node-v48 ABI) (falling back to source compile with node-gyp) 
make: Entering directory '/usr/lib/node_modules/node-gtk/build'
  CXX(target) Release/obj.target/node-gtk/src/loop.o
  CXX(target) Release/obj.target/node-gtk/src/gi.o
  CXX(target) Release/obj.target/node-gtk/src/value.o
  CXX(target) Release/obj.target/node-gtk/src/function.o
../src/function.cc: In function ‘v8::Local<v8::Function> GNodeJS::MakeFunction(v8::Isolate*, GIBaseInfo*)’:
../src/function.cc:184:48: error: ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackData<T, P>::Callback) [with P = GNodeJS::FunctionInfo; T = v8::FunctionTemplate; typename v8::WeakCallbackData<T, P>::Callback = void (*)(const v8::WeakCallbackData<v8::FunctionTemplate, GNodeJS::FunctionInfo>&)]’ is deprecated: use WeakCallbackInfo version [-Werror=deprecated-declarations]
     persistent.SetWeak (func, FunctionDestroyed);
                                                ^
In file included from /home/osboxes/.node-gyp/6.7.0/include/node/node.h:42:0,
                 from ../src/function.h:4,
                 from ../src/function.cc:2:
/home/osboxes/.node-gyp/6.7.0/include/node/v8.h:7647:6: note: declared here
 void PersistentBase<T>::SetWeak(
      ^
/home/osboxes/.node-gyp/6.7.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackData<T, P>::Callback) [with P = GNodeJS::FunctionInfo; T = v8::FunctionTemplate; typename v8::WeakCallbackData<T, P>::Callback = void (*)(const v8::WeakCallbackData<v8::FunctionTemplate, GNodeJS::FunctionInfo>&)]’:
../src/function.cc:184:48:   required from here
/home/osboxes/.node-gyp/6.7.0/include/node/v8.h:7650:16: error: ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackData<S, P>::Callback) [with S = v8::FunctionTemplate; P = GNodeJS::FunctionInfo; T = v8::FunctionTemplate; typename v8::WeakCallbackData<S, P>::Callback = void (*)(const v8::WeakCallbackData<v8::FunctionTemplate, GNodeJS::FunctionInfo>&)]’ is deprecated: use WeakCallbackInfo version [-Werror=deprecated-declarations]
   SetWeak<T, P>(parameter, callback);
                ^
/home/osboxes/.node-gyp/6.7.0/include/node/v8.h:7635:6: note: declared here
 void PersistentBase<T>::SetWeak(
      ^
cc1plus: all warnings being treated as errors
node-gtk.target.mk:98: recipe for target 'Release/obj.target/node-gtk/src/function.o' failed
make: *** [Release/obj.target/node-gtk/src/function.o] Error 1
make: Leaving directory '/usr/lib/node_modules/node-gtk/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/node-gtk/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Linux 4.4.0-21-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/node-gtk/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/node-gtk/build/Release/node-v48-linux-ia32/node-gtk.node" "--module_name=node-gtk" "--module_path=/usr/lib/node_modules/node-gtk/build/Release/node-v48-linux-ia32"
gyp ERR! cwd /usr/lib/node_modules/node-gtk
gyp ERR! node -v v6.7.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
node-pre-gyp ERR! build error 
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/node-gtk/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/node-gtk/build/Release/node-v48-linux-ia32/node-gtk.node --module_name=node-gtk --module_path=/usr/lib/node_modules/node-gtk/build/Release/node-v48-linux-ia32' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/usr/lib/node_modules/node-gtk/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:106:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:877:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
node-pre-gyp ERR! System Linux 4.4.0-21-generic
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/node-gtk/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/node-gtk
node-pre-gyp ERR! node -v v6.7.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok 
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/node-gtk/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/node-gtk/build/Release/node-v48-linux-ia32/node-gtk.node --module_name=node-gtk --module_path=/usr/lib/node_modules/node-gtk/build/Release/node-v48-linux-ia32' (1)
/usr/lib
└── (empty)

npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "-g" "node-gtk"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! code ELIFECYCLE

npm ERR! node-gtk@0.0.20 install: `if [ "$(uname)" = "Darwin" ] && [ "$(which brew)" != "" ]; then export PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig; fi; node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-gtk@0.0.20 install script 'if [ "$(uname)" = "Darwin" ] && [ "$(which brew)" != "" ]; then export PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig; fi; node-pre-gyp install --fallback-to-build'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the node-gtk package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     if [ "$(uname)" = "Darwin" ] && [ "$(which brew)" != "" ]; then export PKG_CONFIG_PATH=$(brew --prefix libffi)/lib/pkgconfig; fi; node-pre-gyp install --fallback-to-build
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs node-gtk
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls node-gtk
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/osboxes/npm-debug.log
npm ERR! code 1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant