Skip to content

Instantly share code, notes, and snippets.

@wickedchicken
Created January 18, 2012 11:05
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save wickedchicken/1632460 to your computer and use it in GitHub Desktop.
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