Giter Club home page Giter Club logo

Comments (23)

samfearn avatar samfearn commented on May 11, 2024 3

The instructions supplied by @rvagg don't seem to work on a full Jessie build as opposed to the light version working as reported by @aburgd.

Also, @dmiddlecamp, I'm presumably being stupid, but how did you install from that tarball? The readme says to do ./configure, but there is no configure or makefile or anything :s

Edit: Oh, that was a stupid question :) just needs putting into /usr/local. For anyone else that this might be helpful for,

wget http://nodejs.org/dist/v4.2.4/node-v4.2.4-linux-armv6l.tar.gz
cd usr/local
sudo tar xzvf ~/node-v4.2.4-linux-armv6l.tar.gz --strip=1

This goes and gets node v4.2.4 using wget and puts it in the home folder, changes to usr/local where we want to put node so we can call it from the command line using "node", and then uncompresses the archive. The strip command is to stop it from being uncompresses into a folder called "node-v4.2.4-linux-armv6l.tar.gz".

from distributions.

enzanki-ars avatar enzanki-ars commented on May 11, 2024 1

By the way, Adafruit has their own builds for Node.js. See: https://learn.adafruit.com/node-embedded-development/installing-node-dot-js

from distributions.

rvagg avatar rvagg commented on May 11, 2024

Unfortunately this is because RaspPi is ARMv6 while the 'armhf' Debian distro is for ARMv7 and above. We need to have an arch check in the setup script to make sure this is stated at install time.

What we probably need to do is have a separate Raspbian-compatible build for RPI, it's not straight-forward unfortunately but we'll look in to it.

from distributions.

sandeepmistry avatar sandeepmistry commented on May 11, 2024

@rvagg thanks, let me know if there's anything I can help out with.

from distributions.

babraham123 avatar babraham123 commented on May 11, 2024

Hey @rvagg, I'm having the same segfault problem. Thanks for working on this

from distributions.

andig avatar andig commented on May 11, 2024

Same problem here, crashing at least up to 0.11.14-1nodesource1~wheezy1

Could we get a more current build of 0.11 that contains the fix mentioned in #44?

from distributions.

babraham123 avatar babraham123 commented on May 11, 2024

@andig
For now I've fixed the problem by compiling node from source. Just change the numbers to the version you want.
http://shapeshed.com/compiling-nodejs-from-source-on-ubuntu-10-04/

from distributions.

DarkPark avatar DarkPark commented on May 11, 2024

just to remind - the problem is still here

from distributions.

rvagg avatar rvagg commented on May 11, 2024

I don't believe we can build armv6 binaries through our standard deb builder setup but it might be practical to maintain a completely separate channel for raspbian.

To try out a test setup I've made, remove the nodesource entries from /etc/apt/sources.list and do the following:

sudo apt-get remove nodejs
sudo su -c 'echo "deb https://deb.nodesource.com/armv6l-node/ weezy main" >> /etc/apt/sources.list'
curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install nodejs

Don't count on this working forever, I'll need to discuss this with @chrislea and make sure we can keep things consistent.

If it stops working, come back here and chat.

from distributions.

DarkPark avatar DarkPark commented on May 11, 2024

thanks

from distributions.

sandeepmistry avatar sandeepmistry commented on May 11, 2024

@rvagg thanks! Works on my RPi!

Will the instructions be added to the nodesource/distributons read me or Installing Node.js via package manager wiki page?

from distributions.

rvagg avatar rvagg commented on May 11, 2024

@sandeepmistry it'll be bundled into the setup script for all .deb-based distributions so you'll run the standard command used by ubuntu and debian (listed on that page and in the README of this repo). I just need to make some changes and test. It'll have to do a uname -a to find armv6l to differentiate it from vanilla weezy which is the problem now (i.e. no differentiation).

from distributions.

nisargjhaveri avatar nisargjhaveri commented on May 11, 2024

Doesn't work for me. @rvagg, Any other solution now?

from distributions.

ayancey avatar ayancey commented on May 11, 2024

@enzanki-ars Node works fine on Adafruit's repo, but do you know if they have anything for npm?

from distributions.

enzanki-ars avatar enzanki-ars commented on May 11, 2024

When you install node from adafruit, it also installs npm.

from distributions.

LouiseLi1889 avatar LouiseLi1889 commented on May 11, 2024

I got the same problem due to follow the instruction
by DougieLawson ยป Wed Mar 04, 2015 6:50 pm
On a Raspberry Pi 2B use
curl -sL https://deb.nodesource.com/setup | sudo bash -
sudo apt-get install -y build-essential python-dev python-rpi.gpio nodejs

from distributions.

rvagg avatar rvagg commented on May 11, 2024

Just a note here, if you're looking for good binaries for armv6 platforms, io.js comes with binaries that are now built on wheezy: https://iojs.org/dist/latest/

from distributions.

LouiseLi1889 avatar LouiseLi1889 commented on May 11, 2024

Thanks.

On Sat, Jul 4, 2015 at 6:59 AM, Rod Vagg [email protected] wrote:

Just a note here, if you're looking for good binaries for armv6 platforms,
io.js comes with binaries that are now built on wheezy:
https://iojs.org/dist/latest/

โ€”
Reply to this email directly or view it on GitHub
#44 (comment)
.

from distributions.

dmiddlecamp avatar dmiddlecamp commented on May 11, 2024

just hit this again... from instructions here trying to install 4.x - https://nodejs.org/en/download/package-manager/

from distributions.

chrislea avatar chrislea commented on May 11, 2024

Please look here at the bottom. We don't currently support ARM builds on old Debian / Ubuntu distros due to compiler toolchain issues.

from distributions.

dmiddlecamp avatar dmiddlecamp commented on May 11, 2024

I was using the latest Jessie raspbian on a Pi B+ v1.2 when I hit the segfault issue:

screen shot 2015-12-16 at 11 01 09 am

Fixed by grabbing https://nodejs.org/dist/v4.2.3/node-v4.2.3-linux-armv6l.tar.gz

from distributions.

aburgd avatar aburgd commented on May 11, 2024

Using the source that @rvagg posted worked for me on DietPi Jessie, FWIW

from distributions.

mathiasrw avatar mathiasrw commented on May 11, 2024

@dmiddlecamp thanks ๐Ÿ‘

from distributions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.