Node.js v4 & v5 on Raspberry Pi 2

3 Comments

Node.jsI had been experimenting with the world of Javascript on the server-side using Node.js.  I “fell off the horse” when Node.js had an identity and direction crisis and io.js was forked.  Node.js and io.js have reunited and the latest supported version is v4.2 with v5.0 just released.  The latest “apt-get” version of Node.js as of 15 September 2015 is (something like) 0.6 on Raspbian Wheezy.  Not current enough IMHO. I also wanted to take advantage of the ARMv7 processor in the Raspberry Pi 2.  The best way forward was to figure out how to compile the latest version from source.  NOTE that instructions have been updated for Raspbian Jessie and later versions of node.js.

More

mongoDB 2.6 and Node.js 0.10.29 on Raspberry Pi

1 Comment

mongoDB on Raspberry PiA while back, I compiled mongoDB 2.1 for Raspberry Pi based upon instructions found on other sites and kind work by developers sharing code on Github.  I acquired a Raspberry Pi B+ and tried to compile mongoDB as I had done previously.  I quickly found out that the (old) compiled version (2.1.1) no longer functions under Raspbian.

I had also been trying out Arch Linux for R-Pi as it was “lighter” and did not include all the GUI/X components that I don’t use.  I use R-Pi for more server centric things and use frame buffer apps for video and images (omxplayer, fbi, fim).

I saw a comment to a posting when Googling for new info for mongoDB on R-Pi.  It said, simply, “use Arch Linux”.  So I did!  I had a little trouble getting Arch Linux to run on the B+ but after a firmware update obtained by a “pacman -Syu” on a R-Pi model B, I could now boot and use Arch Linux on the R-Pi B+ 🙂

I did simple installs via “pacman -S” for “mongodb” and “nodejs”.  I now have full mongoDB 2.6.3 with utilities, Node.js 0.10.29 and npm 1.4.21 working just fine.  Sure mongoDB is pretty slow and can only handle 2GB DBs but I’ve partitioned my data into multiple DBs and combine queries and results using JavaScript.

My effusive thanks go to the Arch Linux Package maintainers!