# Prerequisites
## OS X
- install [Xcode](https://itunes.apple.com/ca/app/xcode/id497799835?mt=12)
## Linux
- Kernel version 3.6 or above
- libbluetooth-dev
## Ubuntu/Debian/Raspbian
```
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
```
Make sure `node` is on your path, if it's not, some options:

- symlink nodejs to node: *sudo ln -s /usr/bin/nodejs /usr/bin/node*
- `install Node.js using the NodeSource package`
## Fedora / Other-RPM based
```
sudo yum install bluez bluez-libs bluez-libs-devel
```
## Intel Edison
See [Configure Intel Edison for Bluetooth LE (Smart) Development](http://rexstjohn.com/configure-intel-edison-for-bluetooth-le-smart-development/)
## FreeBSD
Make sure you have GNU Make:
```
sudo pkg install gmake
```
Disable automatic loading of the default Bluetooth stack by putting `no-ubt.conf` into `/usr/local/etc/devd/no-ubt.conf` and restarting devd (`sudo service devd restart`).

Unload `ng_ubt` kernel module if already loaded:
```
sudo kldunload ng_ubt
```

Make sure you have read and write permissions on the `/dev/usb/*` device that corresponds to your Bluetooth adapter.

## Windows
[*node-gyp requirements for Windows*](https://github.com/TooTallNate/node-gyp#installation)

Install the required tools and configurations using Microsoft's [windows-build-tools](https://github.com/felixrieseberg/windows-build-tools) from an elevated PowerShell or cmd.exe (run as Administrator).
```
npm install --global --production windows-build-tools
```
[node-bluetooth-hci-socket prerequisites](https://github.com/sandeepmistry/node-bluetooth-hci-socket#windows)

- Compatible Bluetooth 4.0 USB adapter
- [WinUSB](https://msdn.microsoft.com/en-ca/library/windows/hardware/ff540196(v=vs.85).aspx) driver setup for Bluetooth 4.0 USB adapter, using [Zadig tool](http://zadig.akeo.ie/)

See [@don](https://github.com/don)'s set up guide on [Bluetooth LE with Node.js and Noble on Windows](https://www.youtube.com/watch?v=mL9B8wuEdms&feature=youtu.be&t=1m46s)
