Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wan't to know if there is a faster way to compile the node.js code for raspberry then letting the raspberry itself compile the code.

Assuming I have cloned the nodejs source into /home/pi/node/ on my raspberry.

  1. Is it right to run the ./configure on the raspberry.
  2. Then copy the node folder to my desktop computer and run make.
  3. Then copy the folder back to my raspberry /home/pi/node and run make install.

Would that work and if yes, are there any downsides to this method?

EDIT: I accepted to use the precompiled Version suggested by goldilocks as it is truly the fastest way of getting the newest node asap.

share|improve this question
up vote 2 down vote accepted

My recommendation is that you don't do this and instead use a precompiled version.

However, if that's not good enough:

Is it right to run the ./configure on the raspberry?


Then copy the node folder to my desktop computer and run make.

No. The build must be done natively on the pi, or else with the use of a cross compiler. In the former case, resolving dependencies will be easy since you can just install them w/ apt-get, but the build will be SLOW. In the latter case, the build will probably be much much faster (presuming your desktop is not also a 700 Mhz single core), but getting it set up and resolving dependencies in the cross environment will probably take you a lot of time to learn and is more prone to error -- including the possibility of subtle flaws in the executable.

run make install

The default install directory is probably /usr/local, so you should do that step as root (I don't know how well sudo make ... works), or else set INSTALL_DIR -- ./configure --help should provide some information about this.

share|improve this answer
Hat tip to you sir! Saved me a lot of time. Precompiled... i should have thought about that by myself :) – Harrys Kavan Aug 23 '14 at 13:55

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.