Closed SwiftSalamander closed 6 years ago
@SwiftSalamander In order to build on FreeBSD, you'll need to install the headers into /usr/src
. (I've done this before by checking out the svn repo, but it looks like you can also get tarballs or install it with sysinstall
.) It sounds like from trentm/node-bunyan#506 that you won't be able to do this, however, since it's on a system that you don't have admin rights on.
You can still use node-bunyan
even if this module fails to compile, since it depends on node-dtrace-provider
in its "optionalDependencies"
and this module provides a fallback stub that bunyan will instead use. You will get a warning every time that the module is loaded though, until #96 is resolved.
Alternatively, you could do your npm install
someplace where you have a full toolchain and headers installed, and then package that up for deployment to production.
I've been meaning to write up some notes for the README explaining some of the OS-specific notes about compiling and using this module. I'll try to do that sometime soon.
Now that #96 is merged, the warning will no longer be printed every time bunyan is loaded. If you wish to use bunyan -p
, you'll want to either get the kernel headers installed on the system, or run the npm install
on another FreeBSD system where you can install the headers under /usr/src
and then deploy using those.
Is it possible to compile/install dtrace-provider on: OS: FreeBSD 10.3 STABLE