Skip to content

Commit

Permalink
updated docs for nan c++11 requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
kelly committed Jun 15, 2016
1 parent a85879e commit 98e2301
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -124,6 +134,12 @@ npm install [email protected]
- **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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 98e2301

Please sign in to comment.