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

Got an error installing wiring-pi on alpine linux #78

Open
deminngi opened this issue Jun 4, 2017 · 0 comments
Open

Got an error installing wiring-pi on alpine linux #78

deminngi opened this issue Jun 4, 2017 · 0 comments

Comments

@deminngi
Copy link

deminngi commented Jun 4, 2017

I tried to use "npm install wiring-pi" got the following error as stated below:
wiringPiSPI.c: In function 'wiringPiSPIDataRW':
wiringPiSPI.c:89:35: error: '_IOC_SIZEBITS' undeclared (first use in this function)

See http://lists.busybox.net/pipermail/buildroot/2016-June/163435.html

CHANGED wiringPiSPI.c
ADDING #include <asm/ioctl.h> 
BEFORE #include <sys/ioctl.h>

Keep in mind there is a wiringpi package under alpine linux installing gpio under /usr/bin!
Yours goes into /usr/local/bin and according to PATH is called BEFORE the alpine linux installed one.
https://pkgs.alpinelinux.org/package/edge/community/armhf/wiringpi

Please look also at node-gyp rebuild it produces a lot of deprecation messages!
Saying ForceSet must be replaced ...

Here my stack:

alpine-linux: 3.6
channel: edge
node 6.10.3
npm 3.10.10

@deminngi deminngi changed the title Got two errors installing wiring-pi on alpine linux Got an error installing wiring-pi on alpine linux Jun 5, 2017
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

1 participant