[SOLVED] Installing Node.js on Linaro Ubuntu

Discussion in 'Application & Utilities' started by phuh, Oct 27, 2013.

Thread Status:
Not open for further replies.
  1. phuh

    phuh New Member

    Joined:
    Oct 27, 2013
    Messages:
    9
    Likes Received:
    0
    Has anyone tried installing Node.js on Linaro Ubuntu 11.10?

    The repository has v0.4.9-1ubuntu3 that is pretty outdated, so I tried building it from source code.

    This is the error message I get at the `make` step:

    Code:
    /usr/bin/python tools/gyp_node -f make
    make -C out BUILDTYPE=Release V=1
    make[1]: Entering directory `/home/ubuntu/node-v0.10.21/out'
    make[1]: Warning: File `../deps/openssl/openssl.gyp' has modification time 1.4e+09 s in the future
      ./tools/gyp_node -fmake --ignore-environment "--toplevel-dir=." -I/home/ubuntu/node-v0.10.21/common.gypi -I/home/ubuntu/node-v0.10.21/config.gypi "--depth=." "-Goutput_dir=/home/ubuntu/node-v0.10.21/out" "--generator-output=/home/ubuntu/node-v0.10.21/out" "-Dcomponent=static_library" "-Dlibrary=static_library" node.gyp
    /bin/sh: ./tools/gyp_node: not found
    make[1]: *** [Makefile] Error 127
    make[1]: Leaving directory `/home/ubuntu/node-v0.10.21/out'
    make: *** [node] Error 2
    
    If anyone had success installing Node v0.10, please share with us :)
     
  2. phuh

    phuh New Member

    Joined:
    Oct 27, 2013
    Messages:
    9
    Likes Received:
    0
    Re: Installing Node.js on Linaro Ubuntu

    I finally got it to work!!! (v0.10.21)

    I got passed the above error by setting the system clock.

    Then I met Segmentation Fault so I compiled it without snapshot:

    Code:
    ./configure --without-snapshot
    make
    
    (If you do make -j4, it fails sometimes because it runs out of memory.)

    Now you have a working node binary on Linaro Ubuntu. :D
     
  3. phuh

    phuh New Member

    Joined:
    Oct 27, 2013
    Messages:
    9
    Likes Received:
    0
  4. javax

    javax New Member

    Joined:
    Oct 23, 2013
    Messages:
    10
    Likes Received:
    0
    Re: Installing Node.js on Linaro Ubuntu

    Awesome! Thanks for sharing.
     
  5. miousername

    miousername New Member

    Joined:
    Jun 23, 2013
    Messages:
    73
    Likes Received:
    0
  6. phuh

    phuh New Member

    Joined:
    Oct 27, 2013
    Messages:
    9
    Likes Received:
    0
    Check out the open-source UDOO Node.js library + command line tool project hosted on GitHub: https://github.com/pilwon/node-udoo
     
  7. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
    Thanks Phuh!

    This is a great contribution.

    Moving this to Apps & Utils forum.
     
  8. Lifeboat_Jim

    Lifeboat_Jim New Member

    Joined:
    Sep 16, 2013
    Messages:
    399
    Likes Received:
    1
Thread Status:
Not open for further replies.

Share This Page