fuwaneko / node-protobuf

Google Protocol Buffers wrapper for Node.js [UNMAINTAINED]
181 stars 42 forks source link

Trouble installing on Linux #42

Closed jdiamondDB closed 9 years ago

jdiamondDB commented 9 years ago

I am having trouble installing on Linux - specifically, the build fails, looking for the protobuf include files. How do I tell npm to look for the protobuf includes, libs in a particular location?

Thanks,

Josh Diamond

fuwaneko commented 9 years ago

Did you install protobuf to non-standard location?

jdiamondDB commented 9 years ago

Most likely yes, as I am in a corporate dev environment and don't have control over installation locations. I can either put it in my private work area, or out on the NAS somewhere...

fuwaneko commented 9 years ago

@jdiamondDB No, I mean, by default it goes to system default location if you install it from packages. Or into /usr/local if you manually compile. (I'm talking about libprotobuf from Google).

jdiamondDB commented 9 years ago

Correct. I cannot install anything (including libprotobuf) into /usr/local on this system. I must install it elsewhere - either in our team's shared dev area, or somewhere under my home directory.

fuwaneko commented 9 years ago

@jdiamondDB you can download latest snapshot of node-protobuf and edit bindings.gyp file to point include_dirs where you need, then compile it with node-gyp.