You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, the only difference is: on RPi you download armv6l build, and on RPi2 you download armv7l one. In general, you can use uname -m to check your CPU arch.
Let us know how the armv7 builds go. I believe Raspbian is still Wheezy-based which is a problem because our armv7 builds are currently being done on a more recent Ubunut-based distro with a newer libc, whereas the armv6 builds are being done on Rasbpian/Wheezy proper. We intend to fix this soon.
The armv6 io.js builds work fine on Wheezy based Raspbian on the Pi1 and Pi2, even though the Pi2 has an ARMv7 processor. There is only one distribution of Raspbian for both the Pi1 and Pi2 at the moment and it's also an armv6 build.
I managed to install io.js on my Raspberry Pi 2 using the armv5 build. Since I can call "iojs -v" this seems to work. But running npm throws the error Cannot find module 'npmlog'.
Instead of copying the bin-folder, I copied the whole folder cp -rp iojs-v1.5.1-linux-armv6l /usr/local
Then I created a symbolic link to iojs for being able to update easily: ln -s /usr/local/ iojs-v1.5.1-linux-armv6l /usr/local/iojs
Finally I added /usr/local/iojs/bin to the PATH variable.
After a reboot everything works fine.
So, final answer to my question seems to be: The current version of io.js works with Raspberry Pi by installing the armv6 build. (armv7 build did not work)
I then tested by installing the latest mongodb driver (which also requires a c++ extension so exercises most of the infrastructure and then running a quick script against a mongodb database running on a local machine.
iojs --eval "var m = require('mongodb'); m.MongoClient.connect('mongodb://192.168.1.81:27017', function(err,res){console.dir(err|| res)})"
So The current version of iojs 1.5.1 works for Raspberry Pi 2 with the armv7 build.
I spend a whole day to get io.js working on Pi2 (but with Minibian, not Raspbian).
After upgrade Wheezy to Jessie I downloaded (latest) iojs-v1.6.2-linux-armv7l.tar.gz and extracted to home/iojs/current and I updated PATH follows:
Activity
Fishrock123 commentedon Mar 9, 2015
We have armv7 builds here, I think those should work? https://iojs.org/dist/v1.5.0/
otherwise you may have to build it yourself, but I think it should work. cc @rvagg
silverwind commentedon Mar 9, 2015
Yeah, those builds will most likely work as-is. I don't own a RPi2, but on a regular RPi, it's just download and copy to a bin dir.
rlidwka commentedon Mar 9, 2015
Yeah, the only difference is: on RPi you download
armv6lbuild, and on RPi2 you downloadarmv7lone. In general, you can useuname -mto check your CPU arch.rvagg commentedon Mar 9, 2015
Let us know how the armv7 builds go. I believe Raspbian is still Wheezy-based which is a problem because our armv7 builds are currently being done on a more recent Ubunut-based distro with a newer libc, whereas the armv6 builds are being done on Rasbpian/Wheezy proper. We intend to fix this soon.
ref #349
Tineler commentedon Mar 9, 2015
Thanks for your answers. I'll try to install the armv7 build tomorrow and will let you know the outcome.
fivdi commentedon Mar 9, 2015
The armv6 io.js builds work fine on Wheezy based Raspbian on the Pi1 and Pi2, even though the Pi2 has an ARMv7 processor. There is only one distribution of Raspbian for both the Pi1 and Pi2 at the moment and it's also an armv6 build.
Tineler commentedon Mar 11, 2015
First update:
I managed to install io.js on my Raspberry Pi 2 using the armv5 build. Since I can call "iojs -v" this seems to work. But running npm throws the error
Cannot find module 'npmlog'.Here's how I did it so far:
wget https://iojs.org/dist/latest/iojs-v1.5.1-linux-armv6l.tar.gztar -xzf iojs-v1.5.1-linux-armv6l.tar.gzcd iojs-v1.5.1-linux-armv6lcp bin/* /usr/binBut I'm not sure, where I should move the other folders of ios (include, lib, share). Any idea?
Tineler commentedon Mar 11, 2015
I finally get it to work by moving the files into /usr/local;
wget https://iojs.org/dist/latest/iojs-v1.5.1-linux-armv6l.tar.gztar -xzf iojs-v1.5.1-linux-armv6l.tar.gzcp -rp iojs-v1.5.1-linux-armv6l /usr/localln -s /usr/local/ iojs-v1.5.1-linux-armv6l /usr/local/iojsAfter a reboot everything works fine.
So, final answer to my question seems to be: The current version of io.js works with Raspberry Pi by installing the armv6 build. (armv7 build did not work)
pgbross commentedon Mar 11, 2015
Just a quick note to say I have tried iojs v1.5.1 on the Raspberry Pi 2 (running fedora 21), and it has worked without error. The steps were:
yum install node (this installed the v0.10.36 build of node).
npm install -g n
patch n to add armv7 as a known architecture
essentially change
to
n io latest
I then tested by installing the latest mongodb driver (which also requires a c++ extension so exercises most of the infrastructure and then running a quick script against a mongodb database running on a local machine.
So The current version of iojs 1.5.1 works for Raspberry Pi 2 with the armv7 build.
--philip
junwatu commentedon Mar 15, 2015
My solution is to upgrade Raspbian Wheezy to Jessie then compile iojs v1.51 and yes it's finally working on Pi2.
lukasMega commentedon Mar 26, 2015
I spend a whole day to get io.js working on Pi2 (but with Minibian, not Raspbian).
After upgrade Wheezy to Jessie I downloaded (latest)
iojs-v1.6.2-linux-armv7l.tar.gzand extracted tohome/iojs/currentand I updatedPATHfollows:Also I executed
rpi-update.