From 98e2301b5b877e3fb605904cbbc0a480ae2d6ae5 Mon Sep 17 00:00:00 2001 From: kelly Date: Wed, 15 Jun 2016 10:00:07 -0700 Subject: [PATCH] updated docs for nan c++11 requirements --- README.md | 16 ++++++++++++++++ package.json | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0541d7a..3f6490d 100644 --- a/README.md +++ b/README.md @@ -85,6 +85,16 @@ Make device writable sudo chmod o+rw /dev/i2c* ```` +Install gcc 4.8 (required for Nan) + +````bash +sudo apt-get install gcc-4.8 g++-4.8 +sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.6 +sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8 +sudo update-alternatives --config gcc + +```` + Set correct device for version ```javascript @@ -124,6 +134,12 @@ npm install i2c@0.1.8 - **click boards** https://github.com/TheThingSystem/node-click-boards - more: https://www.npmjs.org/browse/depended/i2c + +## Contributors + +Thanks to @alphacharlie for Nan rewrite! + + ## Questions? http://www.twitter.com/korevec diff --git a/package.json b/package.json index 3ee6a2e..5f5d0f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "i2c", - "version": "0.2.2", + "version": "0.2.3", "description": "Native bindings for i2c-dev. Plays well with Raspberry Pi and BeagleBone.", "main": "main.js", "author": "Kelly Korevec",