Closed mshick closed 10 years ago
Looks like it does compile and work on my 10.9.1. Thanks!
Nope this doesn't work with brew...
$ brew install protobuf Warning: It appears you have MacPorts or Fink installed. Software installed with other package managers causes known problems for Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again. ==> Downloading http://protobuf.googlecode.com/files/protobuf-2.5.0.tar.bz2 ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/protobuf/2.5.0 --with-zlib ==> make ==> make install ==> Caveats Editor support and examples have been installed to: /usr/local/Cellar/protobuf/2.5.0/share/doc/protobuf ==> Summary /usr/local/Cellar/protobuf/2.5.0: 75 files, 6.2M, built in 84 seconds 91b-i5-2:ESBZmq h0x91b$ npm install node-protobuf npm http GET https://registry.npmjs.org/node-protobuf npm http 304 https://registry.npmjs.org/node-protobuf
node-protobuf@1.0.10 install /Users/h0x91b/Desktop/ESBZmq/node_modules/node-protobuf node-gyp rebuild
CXX(target) Release/obj.target/protobuf/protobuf.o ../protobuf.cpp:7:10: fatal error: 'google/protobuf/dynamic_message.h' file not found
^
1 error generated.
make: *\ [Release/obj.target/protobuf/protobuf.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/opt/local/lib/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:96:17)
gyp ERR! stack at Process._handle.onexit (child_process.js:678:10)
gyp ERR! System Darwin 13.0.0
gyp ERR! command "node" "/opt/local/bin/node-gyp" "rebuild"
gyp ERR! cwd /Users/h0x91b/Desktop/ESBZmq/node_modules/node-protobuf
gyp ERR! node -v v0.8.11
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
npm ERR! node-protobuf@1.0.10 install: node-gyp rebuild
npm ERR! sh "-c" "node-gyp rebuild"
failed with 1
npm ERR!
npm ERR! Failed at the node-protobuf@1.0.10 install script.
npm ERR! This is most likely a problem with the node-protobuf 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 node-protobuf
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 13.0.0 npm ERR! command "node" "/usr/local/bin/npm" "install" "node-protobuf" npm ERR! cwd /Users/h0x91b/Desktop/ESBZmq npm ERR! node -v v0.8.11 npm ERR! npm -v 1.1.62 npm ERR! code ELIFECYCLE npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /Users/h0x91b/Desktop/ESBZmq/npm-debug.log npm ERR! not ok code 0
We must somehow point it to /usr/local/Cellar/protobuf/2.5.0
After a comment from @tlbtlbtlb I reviewed the gypsy settings, and pared them down to the minimum it took for me to make a working compile on my system. Hopefully it's the same for others!
Like I said in the initial PR, I'm not a C++/Xcode pro, so keeping things simple seems like a smarter strategy for me. :)
I'll try to get a simple grunt-based test in a future PR. Had a bit of a time recreating one.