Blog

nodejs-logo

NOTE: This post refers to Node v0.8.x. For new v0.10.x please visit this.

In my previous post I’ve described how to install Node v.0.6.19 into your Fox Board G20. Now I will show how to install the “fresh” 0.8 release of Node. For the identical steps please visit this.

  1. Step 1 to step 4

    The same as this.

  2. Step 5: download Node source code

    To download Node source code simply use customized nvm:

  3. Step 6: customize SConstruct file

    After a while you have the Node source code and you must customize the v8 script:

    and modify as follow:

    and finally this:

    in this one:

  4. Step 7: customize common.gypi

    By default the v8 installer recognize the Fox Board as an armv7, but isn’t right (see this).

    Edit common.gypi:

    and change this:

    as follow:

  5. Step 8: customize macro-assembler-arm.cc

    As workaround for “For thumb inter-working we require an architecture which supports blx” error message during v8 compilation, you must customize macro-assembler-arm.cc source code:

    from this:

    to this:

  6. Step 9: install Node

    Now use again nvm:

    After a few hours (be patient!) you have compiled the latest Node version and you must use it:

    Done! Now you can verify all:

    If all versions appear, you can install your desired Node packages using npm as you know:

    You can also set the default Node version as follow:

Good programming with Node!


 ,

About Marcello Gesmundo

avatar I'm the founder of Yoovant company. I'm an engineer and an artist: what could be better than combine the technologies with the arts?

2 Comment(s)
  1. avatar
    Rob Tweed July 1, 2012 at 13:50

    Do you know whether these instructions would also apply for the Raspberry Pi?

    • avatar
      Marcello Gesmundo July 1, 2012 at 15:15

      Hi Rob,
      I don’t have a Raspberry Pi to try (sorry), but for his processor, you can avoid step 7 and check your cpuinfo:

      and change step 6 accordingly. For example, if your cpu doesn’t have thumb feature and shows ARM11 as cpu architecture, you can use:

      If you have some difficulty please copy and paste here your cpuinfo result.
      Marcello

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">