Closed judholliday closed 10 years ago
Try:
sudo apt-get install build-essential
Turns out the problem was between they keyboard and the chair. Wrong ssh window means I was trying to install on my mac instead of my pi. Clearly time to call it a night. :)
So how does one install on Mac OSX? I get the same error on Mountain Lion. Is Mac OSX supported?
It's currently made for embedded systems that have direct access to the i2c bus.
@ghendricks you can make it an optional dependency for your OS X app using the optionalDependencies section of your package.json and then checking for a valid require by doing the following:
var i2c;
try {
i2c = require('i2c');
} catch { // handle no-i2c case }
Then you can stub out methods to handle the no i2c case and still test/develop/debug your application from a non-embedded system.
Do you think it could be ported to also support OSX ?
node-gyp is throwing an error during installation. Tried a few things like making sure node was up to date, etc, but to no avail. Any help would be appreciated.