npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
npm http 304 https://registry.npmjs.org/debug
gyp ERR! stack Error: gyp failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /tmp/luarocks_gfx.js-scm-0-7846/gfx.js/node_modules/pty.js
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm http 304 https://registry.npmjs.org/inherits
npm ERR! not ok code 0
==> installing static resources into ~/.gfx.js/
==> installing torch client into /home/ihor/torch/install/bin/../share/lua/5.1/gfx/
==> Torch client installed globally, run me like this:
$ luajit -lgfx.start
or
$ luajit -lgfx.go
(this will start the gfx server automatically)
gfx command-line binary installed. Use it to display images quickly
$ gfx test.jpg
Updating manifest for /home/ihor/torch/install/lib/luarocks/rocks
gfx.js scm-0 is now built and installed in /home/ihor/torch/install/ (license: MIT)
then when I launch
ihor@ihor-VirtualBox:~$ luajit -lgfx.go
gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org)
sh: 1: node: not found
[gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000
LuaJIT 2.1.0-alpha -- Copyright (C) 2005-2014 Mike Pall. http://luajit.org/
and the gfx doesn't apper to work properly, though it loads a browser on "http://localhost:8000/" which it is "Unable to connect" to. Or if I launch differently,
ihor@ihor-VirtualBox:~$ luajit -lgfx.start
gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org)
[gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000
sh: 1: node: not found
Things look a bit different under root. Firefox is launchd here aswell displaying the same.
root@ihor-VirtualBox:/home/ihor# luajit -lgfx.go
gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org)
[gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000
sh: 1: node: not found
Note when it thinks it is working successfully (under root)
root@ihor-VirtualBox:/home/ihor# luajit -gfx.go
usage: luajit [options]... [script [args]...].
Available options are:
-e chunk Execute string 'chunk'.
-l name Require library 'name'.
-b ... Save or list bytecode.
-j cmd Perform LuaJIT control command.
-O[opt] Control LuaJIT optimizations.
-i Enter interactive mode after executing 'script'.
-v Show version information.
-E Ignore environment variables.
-- Stop handling options.
Execute stdin and stop handling options.
root@ihor-VirtualBox:/home/ihor# luajit -lgfx.go
gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org)
[gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000
sh: 1: node: not found
npm WARN This failure might be due to the use of legacy binary "node"
Still get problems with
ihor@ihor-VirtualBox:~$ th -x
[gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000
sh: 1: node: not found
[gfx.js] clearing all cached graphics
luarocks install gfx.js produces errors on my Ubunu 14.04
Here are some
npm http 304 https://registry.npmjs.org/fsevents/0.2.0 npm WARN optional dep failed, continuing fsevents@0.2.0
..
npm http 304 https://registry.npmjs.org/cookie-signature/1.0.1 /bin/sh: 1: node: not found gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp gyp ERR! configure error npm http 304 https://registry.npmjs.org/debug gyp ERR! stack Error:
gyp
failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-32-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /tmp/luarocks_gfx.js-scm-0-7846/gfx.js/node_modules/pty.js gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debiannpm ERR! weird error 1 npm http 304 https://registry.npmjs.org/connect/2.11.0
..
npm http 304 https://registry.npmjs.org/inherits npm ERR! not ok code 0 ==> installing static resources into ~/.gfx.js/ ==> installing torch client into /home/ihor/torch/install/bin/../share/lua/5.1/gfx/ ==> Torch client installed globally, run me like this: $ luajit -lgfx.start or $ luajit -lgfx.go (this will start the gfx server automatically) gfx command-line binary installed. Use it to display images quickly $ gfx test.jpg Updating manifest for /home/ihor/torch/install/lib/luarocks/rocks gfx.js scm-0 is now built and installed in /home/ihor/torch/install/ (license: MIT)
then when I launch
ihor@ihor-VirtualBox:~$ luajit -lgfx.go gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org) sh: 1: node: not found [gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000 LuaJIT 2.1.0-alpha -- Copyright (C) 2005-2014 Mike Pall. http://luajit.org/
| | | |
| | _| |_
| |/ | '**/ | ' \ | | () | | | (| | | | //|| _**|| |_|
JIT: ON SSE2 SSE3 fold cse dce fwd dse narrow loop abc sink fuse th> (process:10010): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
and the gfx doesn't apper to work properly, though it loads a browser on "http://localhost:8000/" which it is "Unable to connect" to. Or if I launch differently,
ihor@ihor-VirtualBox:~$ luajit -lgfx.start gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org) [gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000 sh: 1: node: not found
Things look a bit different under root. Firefox is launchd here aswell displaying the same.
root@ihor-VirtualBox:/home/ihor# luajit -lgfx.go gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org) [gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000 sh: 1: node: not found
(process:10309): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed 1422546489939 addons.xpi WARN Add-on webapps-team@lists.launchpad.net is missing bootstrap method install
Note this
th> require 'gfx.js' gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org)
{ show : function: 0x41582d78 chart : function: 0x415830a8 redraw : function: 0x41583160 startserver : function: 0x41582ce8 template : "/home/ihor/.gfx.js/templates/" templates : {...} static : "/home/ihor/.gfx.js/static/data/" list : function: 0x41582cc8 verbose : true image : function: 0x4098b550 killserver : function: 0x41582d58 listservers : function: 0x41582d08 prefix : "/data/" clear : function: 0x41583140 images : function: 0x41582f68 }
Note when it thinks it is working successfully (under root)
root@ihor-VirtualBox:/home/ihor# luajit -gfx.go usage: luajit [options]... [script [args]...]. Available options are: -e chunk Execute string 'chunk'. -l name Require library 'name'. -b ... Save or list bytecode. -j cmd Perform LuaJIT control command. -O[opt] Control LuaJIT optimizations. -i Enter interactive mode after executing 'script'. -v Show version information. -E Ignore environment variables. -- Stop handling options.
root@ihor-VirtualBox:/home/ihor# luajit -lgfx.go gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org) [gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000 sh: 1: node: not found
(process:10462): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed LuaJIT 2.1.0-alpha -- Copyright (C) 2005-2014 Mike Pall. http://luajit.org/
| | | |
| | _| |_
| |/ | '**/ | ' \ | | () | | | (| | | | //|| _**|| |_|
JIT: ON SSE2 SSE3 fold cse dce fwd dse narrow loop abc sink fuse th> require 'gfx.js' th> require 'image' th> i=image.lena() th> gfx th>> .image(i) [gfx.js] rendering cell
th>
but it's not, nothing happens, still "Unable to connect"
from root
(Talking about the gm (GraphicsMagick) binary not found, please install (see www.graphicsmagick.org) error)
though previously, when the bugging happened, "luarocks list" showed me
anyway.
This might be a worthy warning
Still get problems with
ihor@ihor-VirtualBox:~$ th -x [gfx.js] server started on port 8000, graphics will be rendered into http://localhost:8000
sh: 1: node: not found [gfx.js] clearing all cached graphics
(process:4116): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
So it looks like it tries to find "node". And still don't see anything initialized on my port. Might be just a problem with virtualbox, though.