public
Created

node-syslog workaround for "'syslog' was not declared in this scope" bug

  • Download Gist
gistfile1.sh
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
# 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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.