Install error on OS X
tibbon opened this issue · 6 comments
Macbook Pro:word_count tibbon$ npm install -g vnc-over-gif
npm http GET https://registry.npmjs.org/vnc-over-gif
npm http 200 https://registry.npmjs.org/vnc-over-gif
npm http GET https://registry.npmjs.org/vnc-over-gif/-/vnc-over-gif-0.0.1.tgz
npm http 200 https://registry.npmjs.org/vnc-over-gif/-/vnc-over-gif-0.0.1.tgz
npm http GET https://registry.npmjs.org/rfb2/0.0.6
npm http 200 https://registry.npmjs.org/rfb2/0.0.6
npm http GET https://registry.npmjs.org/rfb2/-/rfb2-0.0.6.tgz
npm http 200 https://registry.npmjs.org/rfb2/-/rfb2-0.0.6.tgz
npm http GET https://registry.npmjs.org/bindings/1.1.0
npm http 200 https://registry.npmjs.org/bindings/1.1.0
npm http GET https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz
npm http 200 https://registry.npmjs.org/bindings/-/bindings-1.1.0.tgz
> gif@2.0.1 install /usr/local/share/npm/lib/node_modules/vnc-over-gif/node_modules/gif
> node-gyp rebuild
CC(target) Release/obj.target/giflib/deps/giflib/dgif_lib.o
../deps/giflib/dgif_lib.c:374:23: warning: comparison of integers of different signs:
'unsigned int' and 'int' [-Wsign-compare]
for (i = 0; i < GifFile->Image.ColorMap->ColorCount; i++) {
~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
CC(target) Release/obj.target/giflib/deps/giflib/egif_lib.o
../deps/giflib/egif_lib.c:265:38: warning: comparison of integers of different signs: 'int' and
'size_t' (aka 'unsigned long') [-Wsign-compare]
strlen(write_version)) != strlen(write_version)) {
~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~
../deps/giflib/egif_lib.c:711:16: warning: comparison of integers of different signs: 'int' and
'unsigned int' [-Wsign-compare]
!= (unsigned)(CodeBlock[0] + 1)) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../deps/giflib/egif_lib.c:996:56: warning: comparison of integers of different signs: 'int' and
'unsigned int' [-Wsign-compare]
&& InternalWrite(GifFile, Buf, Buf[0] + 1) != (unsigned)(Buf[0] + 1)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
../deps/giflib/egif_lib.c:1009:57: warning: comparison of integers of different signs: 'int' and
'unsigned int' [-Wsign-compare]
if (InternalWrite(GifFile, Buf, Buf[0] + 1) != (unsigned)(Buf[0] + 1)) {
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
4 warnings generated.
CC(target) Release/obj.target/giflib/deps/giflib/gif_err.o
CC(target) Release/obj.target/giflib/deps/giflib/gif_font.o
CC(target) Release/obj.target/giflib/deps/giflib/gif_hash.o
CC(target) Release/obj.target/giflib/deps/giflib/gifalloc.o
CC(target) Release/obj.target/giflib/deps/giflib/quantize.o
../deps/giflib/quantize.c:132:25: warning: comparison of integers of different signs:
'unsigned int' and 'int' [-Wsign-compare]
if (NewColorMapSize < *ColorMapSize) {
~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~
../deps/giflib/quantize.c:141:19: warning: comparison of integers of different signs: 'int' and
'unsigned int' [-Wsign-compare]
for (i = 0; i < NewColorMapSize; i++) {
~ ^ ~~~~~~~~~~~~~~~
2 warnings generated.
LIBTOOL-STATIC Release/giflib.a
CXX(target) Release/obj.target/gif/src/animated_gif.o
In file included from ../src/animated_gif.cpp:3:
../src/common.h:27:23: warning: field 'b' will be initialized after field 'color_present'
[-Wreorder]
r(rr), g(gg), b(bb), color_present(ccolor_present) {}
^
In file included from ../src/animated_gif.cpp:4:
../src/gif_encoder.h:34:5: warning: 'const' type qualifier on return type has no effect
[-Wignored-qualifiers]
const int get_gif_len() const;
^~~~~
../src/gif_encoder.h:69:5: warning: 'const' type qualifier on return type has no effect
[-Wignored-qualifiers]
const int get_gif_len() const;
^~~~~
../src/animated_gif.cpp:31:44: warning: field 'transparency_color' will be initialized after
field 'data' [-Wreorder]
gif_encoder(wwidth, hheight, BUF_RGB), transparency_color(0xFF, 0xFF, 0xFE),
^
../src/animated_gif.cpp:56:13: warning: enumeration values 'BUF_RGBA' and 'BUF_BGRA' not handled
in switch [-Wswitch]
switch (buf_type) {
^
../src/animated_gif.cpp:79:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
6 warnings generated.
CXX(target) Release/obj.target/gif/src/async_animated_gif.o
In file included from ../src/async_animated_gif.cpp:4:
../src/common.h:27:23: warning: field 'b' will be initialized after field 'color_present'
[-Wreorder]
r(rr), g(gg), b(bb), color_present(ccolor_present) {}
^
In file included from ../src/async_animated_gif.cpp:6:
../src/gif_encoder.h:34:5: warning: 'const' type qualifier on return type has no effect
[-Wignored-qualifiers]
const int get_gif_len() const;
^~~~~
../src/gif_encoder.h:69:5: warning: 'const' type qualifier on return type has no effect
[-Wignored-qualifiers]
const int get_gif_len() const;
^~~~~
In file included from ../src/async_animated_gif.cpp:7:
../src/async_animated_gif.h:38:26: error: unknown type name 'eio_req'
static void EIO_Push(eio_req *req);
^
../src/async_animated_gif.h:39:30: error: unknown type name 'eio_req'
static int EIO_PushAfter(eio_req *req);
^
../src/async_animated_gif.h:41:28: error: unknown type name 'eio_req'
static void EIO_Encode(eio_req *req);
^
../src/async_animated_gif.h:42:32: error: unknown type name 'eio_req'
static int EIO_EncodeAfter(eio_req *req);
^
../src/async_animated_gif.cpp:36:28: error: unknown type name 'eio_req'
AsyncAnimatedGif::EIO_Push(eio_req *req)
^
../src/async_animated_gif.cpp:66:5: warning: unused variable 'scopeGuard66' [-Wunused-variable]
LOKI_ON_BLOCK_EXIT(fclose, out);
^
../src/loki/ScopeGuard.h:662:76: note: expanded from macro 'LOKI_ON_BLOCK_EXIT'
#define LOKI_ON_BLOCK_EXIT ::Loki::ScopeGuard LOKI_ANONYMOUS_VARIABLE(scopeGuard) =...
^
../src/loki/ScopeGuard.h:660:59: note: expanded from macro 'LOKI_ANONYMOUS_VARIABLE'
#define LOKI_ANONYMOUS_VARIABLE(str) LOKI_CONCATENATE(str, __LINE__)
^
../src/loki/ScopeGuard.h:659:66: note: expanded from macro 'LOKI_CONCATENATE'
#define LOKI_CONCATENATE(s1, s2) LOKI_CONCATENATE_DIRECT(s1, s2)
^
../src/loki/ScopeGuard.h:658:42: note: expanded from macro 'LOKI_CONCATENATE_DIRECT'
#define LOKI_CONCATENATE_DIRECT(s1, s2) s1##s2
^
<scratch space>:174:1: note: expanded from macro 'scopeGuard'
scopeGuard66
^
../src/async_animated_gif.cpp:82:33: error: unknown type name 'eio_req'
AsyncAnimatedGif::EIO_PushAfter(eio_req *req)
^
../src/async_animated_gif.cpp:84:14: error: use of undeclared identifier 'EV_DEFAULT_UC'
ev_unref(EV_DEFAULT_UC);
^
../src/async_animated_gif.cpp:124:26: error: use of undeclared identifier 'EIO_PRI_DEFAULT'
eio_custom(EIO_Push, EIO_PRI_DEFAULT, EIO_PushAfter, push_req);
^
../src/async_animated_gif.cpp:125:12: error: use of undeclared identifier 'EV_DEFAULT_UC'
ev_ref(EV_DEFAULT_UC);
^
../src/async_animated_gif.cpp:283:13: warning: enumeration values 'BUF_RGBA' and 'BUF_BGRA' not
handled in switch [-Wswitch]
switch (buf_type) {
^
../src/async_animated_gif.cpp:281:20: warning: unused variable 'fragmentp' [-Wunused-variable]
unsigned char *fragmentp = fragment;
^
../src/async_animated_gif.cpp:317:30: error: unknown type name 'eio_req'
AsyncAnimatedGif::EIO_Encode(eio_req *req)
^
../src/async_animated_gif.cpp:328:69: warning: format specifies type 'int' but the argument has
type 'size_t' (aka 'unsigned long') [-Wformat]
snprintf(fragment_path, 512, "%s/%d", gif->tmp_dir.c_str(), push_id);
~~ ^~~~~~~
%ld
../src/async_animated_gif.cpp:352:39: warning: format specifies type 'int' but the argument has
type 'size_t' (aka 'unsigned long') [-Wformat]
gif->tmp_dir.c_str(), push_id, fragments[i]);
^~~~~~~
../src/async_animated_gif.cpp:361:13: warning: unused variable 'scopeGuard361'
[-Wunused-variable]
LOKI_ON_BLOCK_EXIT(fclose, in);
^
../src/loki/ScopeGuard.h:662:76: note: expanded from macro 'LOKI_ON_BLOCK_EXIT'
#define LOKI_ON_BLOCK_EXIT ::Loki::ScopeGuard LOKI_ANONYMOUS_VARIABLE(scopeGuard) =...
^
../src/loki/ScopeGuard.h:660:59: note: expanded from macro 'LOKI_ANONYMOUS_VARIABLE'
#define LOKI_ANONYMOUS_VARIABLE(str) LOKI_CONCATENATE(str, __LINE__)
^
../src/loki/ScopeGuard.h:659:66: note: expanded from macro 'LOKI_CONCATENATE'
#define LOKI_CONCATENATE(s1, s2) LOKI_CONCATENATE_DIRECT(s1, s2)
^
../src/loki/ScopeGuard.h:658:42: note: expanded from macro 'LOKI_CONCATENATE_DIRECT'
#define LOKI_CONCATENATE_DIRECT(s1, s2) s1##s2
^
<scratch space>:174:1: note: expanded from macro 'scopeGuard'
scopeGuard361
^
../src/async_animated_gif.cpp:364:13: warning: unused variable 'scopeGuard364'
[-Wunused-variable]
LOKI_ON_BLOCK_EXIT(free, data);
^
../src/loki/ScopeGuard.h:662:76: note: expanded from macro 'LOKI_ON_BLOCK_EXIT'
#define LOKI_ON_BLOCK_EXIT ::Loki::ScopeGuard LOKI_ANONYMOUS_VARIABLE(scopeGuard) =...
^
../src/loki/ScopeGuard.h:660:59: note: expanded from macro 'LOKI_ANONYMOUS_VARIABLE'
#define LOKI_ANONYMOUS_VARIABLE(str) LOKI_CONCATENATE(str, __LINE__)
^
../src/loki/ScopeGuard.h:659:66: note: expanded from macro 'LOKI_CONCATENATE'
#define LOKI_CONCATENATE(s1, s2) LOKI_CONCATENATE_DIRECT(s1, s2)
^
../src/loki/ScopeGuard.h:658:42: note: expanded from macro 'LOKI_CONCATENATE_DIRECT'
#define LOKI_CONCATENATE_DIRECT(s1, s2) s1##s2
^
<scratch space>:174:1: note: expanded from macro 'scopeGuard'
scopeGuard364
^
../src/async_animated_gif.cpp:344:9: warning: unused variable 'scopeGuard344' [-Wunused-variable]
LOKI_ON_BLOCK_EXIT(free, frame);
^
../src/loki/ScopeGuard.h:662:76: note: expanded from macro 'LOKI_ON_BLOCK_EXIT'
#define LOKI_ON_BLOCK_EXIT ::Loki::ScopeGuard LOKI_ANONYMOUS_VARIABLE(scopeGuard) =...
^
../src/loki/ScopeGuard.h:660:59: note: expanded from macro 'LOKI_ANONYMOUS_VARIABLE'
#define LOKI_ANONYMOUS_VARIABLE(str) LOKI_CONCATENATE(str, __LINE__)
^
../src/loki/ScopeGuard.h:659:66: note: expanded from macro 'LOKI_CONCATENATE'
#define LOKI_CONCATENATE(s1, s2) LOKI_CONCATENATE_DIRECT(s1, s2)
^
../src/loki/ScopeGuard.h:658:42: note: expanded from macro 'LOKI_CONCATENATE_DIRECT'
#define LOKI_CONCATENATE_DIRECT(s1, s2) s1##s2
^
<scratch space>:174:1: note: expanded from macro 'scopeGuard'
scopeGuard344
^
../src/async_animated_gif.cpp:338:9: warning: unused variable 'scopeGuard338' [-Wunused-variable]
LOKI_ON_BLOCK_EXIT(free_file_list, fragments);
^
../src/loki/ScopeGuard.h:662:76: note: expanded from macro 'LOKI_ON_BLOCK_EXIT'
#define LOKI_ON_BLOCK_EXIT ::Loki::ScopeGuard LOKI_ANONYMOUS_VARIABLE(scopeGuard) =...
^
../src/loki/ScopeGuard.h:660:59: note: expanded from macro 'LOKI_ANONYMOUS_VARIABLE'
#define LOKI_ANONYMOUS_VARIABLE(str) LOKI_CONCATENATE(str, __LINE__)
^
../src/loki/ScopeGuard.h:659:66: note: expanded from macro 'LOKI_CONCATENATE'
#define LOKI_CONCATENATE(s1, s2) LOKI_CONCATENATE_DIRECT(s1, s2)
^
../src/loki/ScopeGuard.h:658:42: note: expanded from macro 'LOKI_CONCATENATE_DIRECT'
#define LOKI_CONCATENATE_DIRECT(s1, s2) s1##s2
^
<scratch space>:174:1: note: expanded from macro 'scopeGuard'
scopeGuard338
^
../src/async_animated_gif.cpp:384:35: error: unknown type name 'eio_req'
AsyncAnimatedGif::EIO_EncodeAfter(eio_req *req)
^
../src/async_animated_gif.cpp:388:14: error: use of undeclared identifier 'EV_DEFAULT_UC'
ev_unref(EV_DEFAULT_UC);
^
../src/async_animated_gif.cpp:439:28: error: use of undeclared identifier 'EIO_PRI_DEFAULT'
eio_custom(EIO_Encode, EIO_PRI_DEFAULT, EIO_EncodeAfter, enc_req);
^
../src/async_animated_gif.cpp:441:12: error: use of undeclared identifier 'EV_DEFAULT_UC'
ev_ref(EV_DEFAULT_UC);
^
12 warnings and 14 errors generated.
make: *** [Release/obj.target/gif/src/async_animated_gif.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/Cellar/node/0.10.5/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:784:12)
gyp ERR! System Darwin 12.3.0
gyp ERR! command "node" "/usr/local/Cellar/node/0.10.5/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/share/npm/lib/node_modules/vnc-over-gif/node_modules/gif
gyp ERR! node -v v0.10.5
gyp ERR! node-gyp -v v0.9.5
gyp ERR! not ok
npm ERR! gif@2.0.1 install: `node-gyp rebuild`
npm ERR! `sh "-c" "node-gyp rebuild"` failed with 1
npm ERR!
npm ERR! Failed at the gif@2.0.1 install script.
npm ERR! This is most likely a problem with the gif package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls gif
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.3.0
npm ERR! command "/usr/local/Cellar/node/0.10.5/bin/node" "/usr/local/bin/npm" "install" "-g" "vnc-over-gif"
npm ERR! cwd /Users/tibbon/Code/word_count
npm ERR! node -v v0.10.5
npm ERR! npm -v 1.2.18
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/tibbon/Code/word_count/npm-debug.log
npm ERR! not ok code 0
Macbook Pro:word_count tibbon$
Since the package is being installed globally you need increased privileges.
sudo npm install -g vnc-over-gif
Hmm, now I'm seeing this. I'm fairly new on Node stuff, so please excuse my n00bness :)
Macbook Pro:word_count tibbon$ sudo npm install -g vnc-over-gif
npm http GET https://registry.npmjs.org/vnc-over-gif
npm http 304 https://registry.npmjs.org/vnc-over-gif
npm http GET https://registry.npmjs.org/rfb2/0.0.6
npm http 304 https://registry.npmjs.org/rfb2/0.0.6
npm ERR! git fetch -a origin (git@github.com:sidorares/node-gif.git) Permission denied (publickey).
npm ERR! git fetch -a origin (git@github.com:sidorares/node-gif.git) fatal: Could not read from remote repository.
npm ERR! git fetch -a origin (git@github.com:sidorares/node-gif.git)
npm ERR! git fetch -a origin (git@github.com:sidorares/node-gif.git) Please make sure you have the correct access rights
npm ERR! git fetch -a origin (git@github.com:sidorares/node-gif.git) and the repository exists.
npm ERR! Error: git "fetch" "-a" "origin"
failed with 128
npm ERR! at ChildProcess. (/usr/local/Cellar/node/0.10.5/lib/node_modules/npm/lib/utils/exec.js:59:20)
npm ERR! at ChildProcess.EventEmitter.emit (events.js:98:17)
npm ERR! at maybeClose (child_process.js:730:16)
npm ERR! at Socket. (child_process.js:943:11)
npm ERR! at Socket.EventEmitter.emit (events.js:95:17)
npm ERR! at Pipe.close (net.js:451:12)
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! npm-@googlegroups.com
npm ERR! System Darwin 12.3.0
npm ERR! command "/usr/local/Cellar/node/0.10.5/bin/node" "/usr/local/bin/npm" "install" "-g" "vnc-over-gif"
npm ERR! cwd /Users/tibbon/Code/word_count
It looks like node-gif requires an old version of node, I got around this error by switching to node-v0.9.2. You can see in the changelog that libeio was removed in 0.9.3.
same error here