Node.js, server side javascript sitting on top of Google's v8 engine, is not available for install from the Debian squeeze's default repositories and doesn't easily compile for ARM. Are there any raspberry pi specific projects to get node up and running? Is there an easy way to build from source or install from binary if my package manager doesn't include node or if I want the latest version?
-
Sorry, but it works great on my Arch Linux Pi. Installed from repository.– JivingsJul 14, 2012 at 21:51
-
Yeah the pacman install is great for Arch linux, but not for Debian/others. This is good for custom builds or if you aren't on Arch.– wmarbutJul 14, 2012 at 22:05
-
Check out the package build for Arch, perhaps you can copy that build proceedure?– JivingsJul 14, 2012 at 22:07
-
It's a good suggestion, but if you look at my answer, someone's already done the legwork.– wmarbutJul 14, 2012 at 22:16
3 Answers
Those patches are not necessary anymore since Node.js v0.8.10.
Either compile it yourself (takes about 2 hours): http://www.raspberrypi.org/phpBB3/viewtopic.php?f=34&t=18775
Download the binary (at the moment only available for v0.8.17). http://nodejs.org/dist/v0.8.17/node-v0.8.17-linux-arm-pi.tar.gz
Github user Geoff Flarity has created a raspberry pi specific patch that allows node.js to be compiled for the raspberry pi.
On top of this he includes pre-built binaries for the latest version of node and clear instructions.
You can find this all here https://github.com/gflarity/node_pi
Under the Debian Squeeze distribution node.js 0.8.2 compiles quite happily with a few tweaks
http://ijosblog.blogspot.fi/2012/07/compiling-nodejs-on-raspberry-pi.html