This is fork of protobuf-for-node library, fixed to work with latest node version (at the time of writing - 0.5.5).
Make sure you have installed following libraries:
- libprotobuf-dev (>= 2.3.0)
- libprotobuf-lite6 (>= 2.3.0)
- libprotobuf6 (>= 2.3.0)
- protobuf-compiler (>= 2.3.0)
protobuf-for-node
requires latest version of node (0.5.5).
Installation of latest node is fairly straightforward, and can be done from precompiled deb packages.
Since in main Ubuntu repository contains only stable version of node, you have to add chris-lea/node.js-devel
PPA (https://launchpad.net/~chris-lea/+archive/node.js-devel) to /etc/apt/sources.list
. For example for Ubuntu 11.04:
deb http://ppa.launchpad.net/chris-lea/node.js-devel/ubuntu natty main
deb-src http://ppa.launchpad.net/chris-lea/node.js-devel/ubuntu natty main
Now execute following:
sudo apt-get update
sudo apt-get install nodejs nodejs-dev
For other distributions, following https://github.com/joyent/node/wiki/Installation is recommended.
Since this version of protobuf-for-node
is not available yet in npm
repository, cloning sources is required:
git clone git://github.com/dejw/node-protobuf.git
cd node-protobuf
sudo npm link
Now type:
npm link protobuf
inside project's base directory to load module.
Usage examples are described here: http://code.google.com/p/protobuf-for-node/
- Removed compilation errors against node 0.5.5
- Fixed makefile script
- Fixed tests to require
protobuf
instead ofprotobuf_for_node
- Fixed a bug which corrupts field names in proto files.
- Library compiles in single node module.
Author: Matthias Ernst
Contributors: Igor Gumenyuk, Dawid Fatyga