CamHenlin / iMessageWebClient

send and receive iMessages on anything with a web browser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation Errors

bryankstarr opened this issue · comments

commented

OS: 10.10.3
XCode: 6.3
Brew: 0.9.5
Node: 0.12.2

npm install

npm WARN package.json imessagewebclient@1.0.0 No repository field.
npm WARN package.json applescript@1.0.0 No repository field.
/

ref@0.3.5 install /Users/starr/Downloads/imessagewebclient/node_modules/iMessageModule/node_modules/NodObjC/node_modules/ref
node-gyp rebuild

CXX(target) Release/obj.target/binding/src/binding.o
SOLINK_MODULE(target) Release/binding.node
SOLINK_MODULE(target) Release/binding.node: Finished

ffi@1.2.7 install /Users/starr/Downloads/imessagewebclient/node_modules/iMessageModule/node_modules/NodObjC/node_modules/ffi
node-gyp rebuild

CC(target) Release/obj.target/ffi/deps/libffi/src/prep_cif.o
CC(target) Release/obj.target/ffi/deps/libffi/src/types.o
CC(target) Release/obj.target/ffi/deps/libffi/src/raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/java_raw_api.o
CC(target) Release/obj.target/ffi/deps/libffi/src/closures.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/ffi64.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin.o
CC(target) Release/obj.target/ffi/deps/libffi/src/x86/darwin64.o
LIBTOOL-STATIC Release/libffi.a
CXX(target) Release/obj.target/ffi_bindings/src/ffi.o
In file included from ../src/ffi.cc:2:
../src/ffi.h:57:43: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle FFIPrepCif(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/ffi.cc:2:
../src/ffi.h:58:46: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle FFIPrepCifVar(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/ffi.cc:2:
../src/ffi.h:59:40: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle FFICall(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/ffi.cc:2:
../src/ffi.h:60:45: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle FFICallAsync(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/ffi.cc:2:
../src/ffi.h:64:40: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle Strtoul(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
In file included from ../src/ffi.cc:2:
../src/ffi.h:94:41: error: unknown type name 'Arguments'; did you mean
'v8::internal::Arguments'?
static Handle Callback(const Arguments& args);
^~~~~~~~~
v8::internal::Arguments
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:127:7: note:
'v8::internal::Arguments' declared here
class Arguments;
^
../src/ffi.cc:19:15: error: calling a protected constructor of class
'v8::HandleScope'
HandleScope scope;
^
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:816:13: note: declared
protected here
V8_INLINE HandleScope() {}
^
../src/ffi.cc:21:3: error: unexpected namespace name 'Buffer': expected
expression
Buffer buf = Buffer::New(ptr, length, wrap_pointer_cb, user_data);
^
../src/ffi.cc:21:11: error: use of undeclared identifier 'buf'
Buffer *buf = Buffer::New(ptr, length, wrap_pointer_cb, user_data);
^
../src/ffi.cc:22:16: error: no member named 'Close' in 'v8::HandleScope'
return scope.Close(buf->handle
);
~~~~~ ^
../src/ffi.cc:22:22: error: use of undeclared identifier 'buf'
return scope.Close(buf->handle_);
^
../src/ffi.cc:28:33: error: too few arguments to function call, single argument
'isolate' was not specified
Local o = Object::New();
~~~~~~~~~~~ ^
/Users/starr/.node-gyp/0.12.2/deps/v8/include/v8.h:2388:3: note: 'New' declared
here
static Local New(Isolate_ isolate);
^
../src/ffi.cc:31:18: error: no member named 'NewSymbol' in 'v8::String'
o->Set(String::NewSymbol("dlopen"), WrapPointer((char *)dlopen));
~~~~~~~~^
../src/ffi.cc:32:18: error: no member named 'NewSymbol' in 'v8::String'
o->Set(String::NewSymbol("dlclose"), WrapPointer((char *)dlclose));
~~~~~~~~^
../src/ffi.cc:33:18: error: no member named 'NewSymbol' in 'v8::String'
o->Set(String::NewSymbol("dlsym"), WrapPointer((char *)dlsym));
~~~~~~~~^
../src/ffi.cc:34:18: error: no member named 'NewSymbol' in 'v8::String'
o->Set(String::NewSymbol("dlerror"), WrapPointer((char *)dlerror));
~~~~~~~~^
../src/ffi.cc:36:23: error: no member named 'NewSymbol' in 'v8::String'
target->Set(String::NewSymbol("StaticFunctions"), o);
~~~~~~~~^
../src/ffi.cc:49:3: error: no matching function for call to 'NODE_SET_METHOD'
NODE_SET_METHOD(target, "ffi_prep_cif", FFIPrepCif);
^~~~~~~~~~~~~~~
/Users/starr/.node-gyp/0.12.2/src/node.h:240:25: note: expanded from macro
'NODE_SET_METHOD'

define NODE_SET_METHOD node::NODE_SET_METHOD

                    ^~~~~~~~~~~~~~~~~~~~~

/Users/starr/.node-gyp/0.12.2/src/node.h:228:13: note: candidate function [with
TypeName = v8::Handlev8::Object] not viable: no known conversion from
'Handlev8::Value (const v8::internal::Arguments &)' to
'v8::FunctionCallback' (aka 'void (*)(const
FunctionCallbackInfov8::Value &)') for 3rd argument
inline void NODE_SET_METHOD(const TypeName& recv,
^
../src/ffi.cc:50:3: error: no matching function for call to 'NODE_SET_METHOD'
NODE_SET_METHOD(target, "ffi_prep_cif_var", FFIPrepCifVar);
^~~~~~~~~~~~~~~
/Users/starr/.node-gyp/0.12.2/src/node.h:240:25: note: expanded from macro
'NODE_SET_METHOD'

define NODE_SET_METHOD node::NODE_SET_METHOD

                    ^~~~~~~~~~~~~~~~~~~~~

/Users/starr/.node-gyp/0.12.2/src/node.h:228:13: note: candidate function [with
TypeName = v8::Handlev8::Object] not viable: no known conversion from
'Handlev8::Value (const v8::internal::Arguments &)' to
'v8::FunctionCallback' (aka 'void ()(const
FunctionCallbackInfov8::Value &)') for 3rd argument
inline void NODE_SET_METHOD(const TypeName& recv,
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *
* [Release/obj.target/ffi_bindings/src/ffi.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/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:110:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/starr/Downloads/imessagewebclient/node_modules/iMessageModule/node_modules/NodObjC/node_modules/ffi
gyp ERR! node -v v0.12.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.2
npm ERR! npm v2.7.4
npm ERR! code ELIFECYCLE

npm ERR! ffi@1.2.7 install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ffi@1.2.7 install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the ffi 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 ffi
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/starr/Downloads/imessagewebclient/npm-debug.log

Hmm, looks like an error with one of the npm modules -- checking it out now

Okay this is the problem reported in NodObjC here: TooTallNate/NodObjC#29
I will try to figure out a fix for this, but for now, a workaround should be to use node 0.10.x

Okay this is now resolved, do a pull and try reinstalling

commented

Just verified working with node-v0.10.38.

Awesome, thanks for helping out!

commented

Verified node-0.12.2_1 working with the new pull.