Node.js source code build giving segmentation fault on ARM

后端 未结 2 1353
日久生厌
日久生厌 2020-12-16 17:00

tl;dr: I tried to install node.js on my ARMv7-based Cubox running Ubuntu 12.10 (quantal). When compiling node.js from source (see \"Second attempt\" below), node

相关标签:
2条回答
  • 2020-12-16 17:42

    I had trouble building on a Samsung Chromebook XE303C12I with Crouton running Unity, even with --without-snapshot and --with-arm-float-abi=hard, so I used the precompiled binaries for Linux ARM devices.

    Binaries can be found in the release directory at nodejs.org/dist/{version number}

    For example, the ARM binary for v0.10.24 can be downloaded [here].(http://nodejs.org/dist/v0.10.24/node-v0.10.24-linux-arm-pi.tar.gz)

    Here's a script to download and install a binary. Once you have node installed, make sure to add path/to/bin/node to your $PATH.

    0 讨论(0)
  • 2020-12-16 17:54

    I had this problem too on a few different ARM computers. Compiling without the snapshot feature worked for me. Snapshot is a V8 feature that allows node to start faster, and there seems to be a bug for ARM.

    ./configure --without-snapshot
    make
    sudo make install
    

    http://www.armhf.com/index.php/node-js-for-the-beaglebone-black/

    0 讨论(0)
提交回复
热议问题