Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I really need some help #22

Open
only-gale opened this issue Apr 10, 2016 · 0 comments
Open

I really need some help #22

only-gale opened this issue Apr 10, 2016 · 0 comments

Comments

@only-gale
Copy link

I couldn't install the app, the errors will be listed below:
First, I got the output like this after I ran "sudo npm install":

[email protected] install /home/gale/Code/chirp/node_modules/kerberos
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/gale/Code/chirp/node_modules/kerberos/build' SOLINK_MODULE(target) Release/obj.target/kerberos.node COPY Release/kerberos.node make: Leaving directory/home/gale/Code/chirp/node_modules/kerberos/build'

[email protected] install /home/gale/Code/chirp/node_modules/bson
(node-gyp rebuild 2> builderror.log) || (exit 0)

make: Entering directory /home/gale/Code/chirp/node_modules/bson/build' CXX(target) Release/obj.target/bson/ext/bson.o make: Leaving directory/home/gale/Code/chirp/node_modules/bson/build'
[email protected] /home/gale/Code/chirp
├── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
└─┬ [email protected]
├─┬ [email protected]
│ └── [email protected]
└── [email protected]

then I followed the first tip and ran "make":
gale@gale-ThinkPad-T450s:/Code/chirp/node_modules/kerberos/build$ make
make: Nothing to be done for `all'.
the second tip's output:
gale@gale-ThinkPad-T450s:
/Code/chirp/node_modules/kerberos/build$ cd /home/gale/Code/chirp/node_modules/bson/build
gale@gale-ThinkPad-T450s:~/Code/chirp/node_modules/bson/build$ make
CXX(target) Release/obj.target/bson/ext/bson.o
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h:261:25: error: redefinition of ‘template v8::Local NanEnsureLocal(v8::Local)’
NAN_INLINE v8::Local NanEnsureLocal(v8::Local val) {
^
../../nan/nan.h:256:25: error: ‘template v8::Local NanEnsureLocal(v8::Handle)’ previously declared here
NAN_INLINE v8::Local NanEnsureLocal(v8::Handle val) {
^
../../nan/nan.h:661:13: error: ‘node::smalloc’ has not been declared
, node::smalloc::FreeCallback callback
^
../../nan/nan.h:661:35: error: expected ‘,’ or ‘...’ before ‘callback’
, node::smalloc::FreeCallback callback
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(char
, size_t, int)’:
../../nan/nan.h:665:50: error: ‘callback’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h:665:60: error: ‘hint’ was not declared in this scope
v8::Isolate::GetCurrent(), data, length, callback, hint);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char
, uint32_t)’:
../../nan/nan.h:672:67: error: call of overloaded ‘New(v8::Isolate
, const char&, uint32_t&)’ is ambiguous
return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
^
../../nan/nan.h:672:67: note: candidates are:
In file included from ../ext/bson.cc:24:0:
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, v8::Localv8::String, node::encoding)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: no known conversion for argument 3 from ‘uint32_t {aka unsigned int}’ to ‘node::encoding’
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: v8::MaybeLocalv8::Object node::Buffer::New(v8::Isolate_, char_, size_t)
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate* isolate,
^
/home/gale/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: no known conversion for argument 2 from ‘const char_’ to ‘char_’
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(uint32_t)’:
../../nan/nan.h:676:61: error: could not convert ‘node::Buffer::New(v8::Isolate::GetCurrent(), ((size_t)size))’ from ‘v8::MaybeLocalv8::Object’ to ‘v8::Localv8::Object’
return node::Buffer::New(v8::Isolate::GetCurrent(), size);
^
../../nan/nan.h: In function ‘v8::Localv8::Object NanBufferUse(char_, uint32_t)’:
../../nan/nan.h:683:12: error: ‘Use’ is not a member of ‘node::Buffer’
return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONDeserialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:825:44: warning: ‘ssize_t node::DecodeBytes(v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:317): Use DecodeBytes(isolate, ...) [-Wdeprecated-declarations]
ssize_t len = DecodeBytes(args[0], BINARY);
^
../ext/bson.cc:833:41: warning: ‘ssize_t node::DecodeWrite(char_, size_t, v8::Localv8::Value, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:330): Use DecodeWrite(isolate, ...) [-Wdeprecated-declarations]
DecodeWrite(data, len, args[0], BINARY);
^
../ext/bson.cc: In static member function ‘static void BSON::BSONSerialize(const v8::FunctionCallbackInfov8::Value&)’:
../ext/bson.cc:928:73: warning: ‘v8::Localv8::Value node::Encode(const void_, size_t, node::encoding)’ is deprecated (declared at /home/gale/.node-gyp/5.2.0/include/node/node.h:298): Use Encode(isolate, ...) [-Wdeprecated-declarations]
Local bin_value = Encode(serialized_object, object_size, BINARY)->ToString();
^
In file included from ../ext/bson.h:17:0,
from ../ext/bson.cc:36:
../../nan/nan.h: In function ‘v8::Localv8::Object NanNewBufferHandle(const char_, uint32_t)’:
../../nan/nan.h:673:3: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Release/obj.target/bson/ext/bson.o] Error 1

And then I absolutely had no idea with this, please help me, thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant