Create a gist now

Instantly share code, notes, and snippets.

node-syslog workaround for "'syslog' was not declared in this scope" bug
# on some linuxen (and presumably macs) the real syslog.h is in sys/
# node-waf doesn't like this very much
# first cd into your node_modules directory (created when you install npm packages)
cd node_modules/
# clone the node-syslog source
git clone https://github.com/schamane/node-syslog.git
# cd into node-syslog
cd node-syslog
# change <syslog.h> to <sys/syslog.h> on line 8
vim syslog.h
# build/install the package
node-waf configure build install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment