Last active
November 7, 2015 17:53
-
-
Save torgeir/89ec54bbc6cf80d8bff4 to your computer and use it in GitHub Desktop.
Installing serialport@2.0.2 on node 4.2.2 on the Raspberry Pi 2 - Raspbian GNU/Linux 7 (wheezy)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@bekkpi2 ~ $ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.29.0/install.sh | bash | |
.. | |
pi@bekkpi2 ~ $ source ~/.nvm/nvm.sh | |
.. | |
pi@bekkpi2 ~ $ nvm install 4.2.2 | |
.. | |
pi@bekkpi2 ~ $ cat /etc/*-release | |
PRETTY_NAME="" | |
NAME="Raspbian GNU/Linux" | |
VERSION_ID="7" | |
VERSION="7 (wheezy)" | |
ID=raspbian | |
ID_LIKE=debian | |
ANSI_COLOR="1;31" | |
HOME_URL="http://www.raspbian.org/" | |
SUPPORT_URL="http://www.raspbian.org/RaspbianForums" | |
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs" | |
pi@bekkpi2 ~ $ uname -a | |
Linux bekkpi2 3.18.11-v7+ #781 SMP PREEMPT Tue Apr 21 18:07:59 BST 2015 armv7l GNU/Linux | |
pi@bekkpi2 ~ $ gcc --version | |
gcc (Debian 4.6.3-14+rpi1) 4.6.3 | |
Copyright (C) 2011 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
# This does the trick! | |
# http://andyfelong.com/2015/09/node-js-v4-1-0-on-raspberry-pi-2/ | |
pi@bekkpi2 ~ $ g++ --version | |
g++ (Debian 4.6.3-14+rpi1) 4.6.3 | |
Copyright (C) 2011 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
pi@bekkpi2 ~ $ sudo apt-get install gcc-4.8 g++-4.8 | |
Leser pakkelister ... Ferdig | |
Skaper oversikt over avhengighetsforhold | |
Leser tilstandsinformasjon ... Ferdig | |
g++-4.8 er allerede nyeste versjon. | |
gcc-4.8 er allerede nyeste versjon. | |
0 oppgraderte, 0 nylig installerte, 0 å fjerne og 40 ikke oppgradert. | |
pi@bekkpi2 ~ $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.6 20 | |
update-alternatives: using /usr/bin/gcc-4.6 to provide /usr/bin/gcc (gcc) in auto modus | |
pi@bekkpi2 ~ $ sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 50 | |
update-alternatives: using /usr/bin/gcc-4.8 to provide /usr/bin/gcc (gcc) in auto modus | |
pi@bekkpi2 ~ $ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.6 20 | |
update-alternatives: using /usr/bin/g++-4.6 to provide /usr/bin/g++ (g++) in auto modus | |
pi@bekkpi2 ~ $ sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-4.8 50 | |
update-alternatives: using /usr/bin/g++-4.8 to provide /usr/bin/g++ (g++) in auto modus | |
pi@bekkpi2 ~ $ gcc --versiongcc (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2 | |
Copyright (C) 2013 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
pi@bekkpi2 ~ $ g++ --versiong++ (Raspbian 4.8.2-21~rpi3rpi1) 4.8.2 | |
Copyright (C) 2013 Free Software Foundation, Inc. | |
This is free software; see the source for copying conditions. There is NO | |
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | |
pi@bekkpi2 ~/bekkboard/hardware $ npm i | |
npm WARN package.json hardware@0.0.0 No description | |
npm WARN package.json hardware@0.0.0 No repository field. | |
npm WARN package.json hardware@0.0.0 No README data | |
npm WARN package.json hardware@0.0.0 license should be a valid SPDX license expression | |
| | |
> serialport@2.0.2 install /home/pi/bekkboard/hardware/node_modules/serialport | |
> node-pre-gyp install --fallback-to-build | |
make: Entering directory '/home/pi/bekkboard/hardware/node_modules/serialport/build' | |
CXX(target) Release/obj.target/serialport/src/serialport.o | |
CXX(target) Release/obj.target/serialport/src/serialport_unix.o | |
CXX(target) Release/obj.target/serialport/src/serialport_poller.o | |
SOLINK_MODULE(target) Release/obj.target/serialport.node | |
COPY Release/serialport.node | |
COPY /home/pi/bekkboard/hardware/node_modules/serialport/build/serialport/v2.0.2/Release/node-v46-linux-arm/serialport.node | |
TOUCH Release/obj.target/action_after_build.stamp | |
make: Leaving directory '/home/pi/bekkboard/hardware/node_modules/serialport/build' | |
serialport@2.0.2 node_modules/serialport | |
├── bindings@1.2.1 | |
├── async@0.9.0 | |
├── sf@0.1.7 | |
├── debug@2.2.0 (ms@0.7.1) | |
├── nan@2.0.9 | |
└── optimist@0.6.1 (wordwrap@0.0.3, minimist@0.0.10) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment