Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing fluffd under Ubuntu #22

Open
Bartman236 opened this issue Nov 11, 2017 · 1 comment
Open

Error when installing fluffd under Ubuntu #22

Bartman236 opened this issue Nov 11, 2017 · 1 comment

Comments

@Bartman236
Copy link

Trying to get fluffd working under Linux I successfully installed node.js under Ubuntu using:

$ sudo apt install curl
$ curl -sL https://deb.nodesource.com/setup_7.x | sudo -E bash -
$ sudo apt-get install -y nodejs

When I check the version:
$ node -v
I get:
v7.10.1

All seems fine. However, when I try to install fluffd from the fluffd directory:
$ npm install
I get the following error:

node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v51-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v51 ABI) (falling back to source compile with node-gyp)

This ends up in a build error.
When I check the link to the usb bindings, they appear to be indeed unavailable:
https://github.com/tessel/node-usb/releases/
The bindings for or v51 (needed for nodejs 7.x) appear to be under v1.3.0. instead of 1.2.0, but no Linux versions to be found.

Where can I find these bindings?

@Jeija
Copy link
Owner

Jeija commented Nov 13, 2017

Thanks for your report.

It's true that node-usb doesn't seem to release pre-built binaries for Linux, but npm install will automatically build node-usb from source if the binary is unavailable. However, you are probably missing some of the build dependencies. Please try to install the missing dependencies using

sudo apt install python make g++ libudev-dev

Then, execute npm install again. ERR! will probably be displayed again, but this time it should also try to build node-usb from source. If something goes wrong, try to figure out what dependency it is missing and install it, or post the full error log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants