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

install error with msgpack #12

Closed
levelos opened this issue Oct 19, 2012 · 9 comments
Closed

install error with msgpack #12

levelos opened this issue Oct 19, 2012 · 9 comments

Comments

@levelos
Copy link

levelos commented Oct 19, 2012

clang: error: no such file or directory: 'Release/msgpack.node'

I'm using:

  • Mountain Lion
  • Node v0.8.12
@2sidedfigure
Copy link

similar...

npm ERR! System Linux 3.2.0-31-generic
npm ERR! command "node" "/usr/local/bin/npm" "install" "-g" "underscore-cli"
npm ERR! cwd /home/ryan/npm
npm ERR! node -v v0.6.15
npm ERR! npm -v 1.1.9
npm ERR! code ELIFECYCLE
npm ERR! message msgpack@0.1.3 preinstall: `make`
npm ERR! message `sh "-c" "make"` failed with 2
npm ERR! errno {}

@markphilpot
Copy link

Exact issue on Ubuntu 12.04 when building msgpack:

[1/2] cxx: msgpack.cc -> ../build/Release/msgpack_1.o
../src/msgpack.cc: In function ‘v8::Handlev8::Value pack(const v8::Arguments&)’:
../src/msgpack.cc:292:16: error: ‘class node::Buffer’ has no member named ‘data’
../src/msgpack.cc: In function ‘v8::Handlev8::Value unpack(const v8::Arguments&)’:
../src/msgpack.cc:320:33: error: ‘class node::Buffer’ has no member named ‘data’
../src/msgpack.cc:320:46: error: ‘class node::Buffer’ has no member named ‘length’
../src/msgpack.cc:326:35: error: ‘class node::Buffer’ has no member named ‘length’
../src/msgpack.cc:340:1: warning: control reaches end of non-void function [-Wreturn-type]
Waf: Leaving directory `/usr/local/lib/node_modules/underscore-cli/node_modules/msgpack/build'
Build failed: -> task failed (err #1):
{task: cxx msgpack.cc -> msgpack_1.o}

@markphilpot
Copy link

Could be related to this: pgriess/node-msgpack#23

Not sure if the node-msgpack dependency just needs to be upgraded or the version in npm registry hasn't been updated.

@ddopson
Copy link
Owner

ddopson commented Oct 22, 2012

Hmm. as a workaround, you could disable MessagePack, since it's optional unless you want to use that feature.

I'll try and test with the latest version.

@ddopson
Copy link
Owner

ddopson commented Oct 22, 2012

p.s, underscoreCLI lazy loads the 'msgpack' module, so if it's not installed, nothing will break unless you use that format directly.

@markphilpot
Copy link

Is there a way with npm to tell it to ignore the msgpack dependency?

@ddopson
Copy link
Owner

ddopson commented Nov 5, 2012

I wish that was "easier". By far the most straightforward way is to delete it from package.json

@ddopson
Copy link
Owner

ddopson commented Nov 5, 2012

I guess in theory, I could push a 2nd version of the module to the NPM repo ... "underscore-cli-nomsgpack" that would have exactly that package.json change. Is that worth it?

@ddopson
Copy link
Owner

ddopson commented Nov 5, 2012

Here's some other folks asking for "optional dependencies" in npm:

https://github.com/isaacs/npm/issues/995

!!!!! NPM supports a "optionalDependencies" field !!!!!!!!!

PROBLEM SOLVED. :)

pushing v0.2.16 that addresses this issue :)

@ddopson ddopson closed this as completed in f7ebbaf Nov 5, 2012
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

4 participants