This is a fork of https://github.com/chrisdew/protobuf
It was forked to add support for nodejs 0.6.x using code from https://github.com/pzgz/protobuf-for-node and to provide better support for future nodejs versions and npm.
wget http://protobuf.googlecode.com/files/protobuf-2.4.1.tar.gz
tar -xzvf protobuf-2.4.1.tar.gz
cd protobuf-2.4.1/
./configure && make && sudo make install
cd "/path/to/app/dir/node_modules"
git clone git://github.com/englercj/protobuf.git protobuf
cd protobuf
npm install
Now protobuf is installed but will not run becuase more than likely you library path does not include protobuf binaries. On Ubuntu you can update this with the following script:
echo "/path/to/app/dir/node_modules/protobuf/build/Release" | tee /etc/ld.so.conf.d/protobuf.conf && ldconfig
You can test your installation by opening the nodejs console (by typing node
) and issue the following
require('protobuf');
.exit
You should see the output { Schema: [Function: Schema] }
Please report any issues or bugs at https://github.com/englercj/protobuf/issues