clementfarabet / gfx.js

A graphics backend for the browser (with a Torch7 client).
MIT License
125 stars 35 forks source link

Install error on Ubuntu 14.04 (fsevents issue) #29

Closed Grisson closed 9 years ago

Grisson commented 9 years ago

It looks like the fsevents doesn't support linux at all!

make: Leaving directory `/tmp/luarocks_gfx.js-scm-0-5400/gfx.js/node_modules/socket.io/node_modules/socket
.io-client/node_modules/engine.io-client/node_modules/ws/build'
npm ERR! notsup Unsupported
npm ERR! notsup Not compatible with your operating system or architecture: fsevents@0.2.0
npm ERR! notsup Valid OS:    darwin
npm ERR! notsup Valid Arch:  any
npm ERR! notsup Actual OS:   linux
npm ERR! notsup Actual Arch: x64

npm ERR! System Linux 3.13.0-36-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /tmp/luarocks_gfx.js-scm-0-5400/gfx.js
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! code EBADPLATFORM
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /tmp/luarocks_gfx.js-scm-0-5400/gfx.js/npm-debug.log
npm ERR! not ok code 0
Grisson commented 9 years ago

It turns out this module is not required in ubuntu.

Solution:

  1. clone the project to local
  2. delete line 16 ("fsevents": "0.2.0") in package.json file.
  3. luarocks make