Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: richardh on October 26, 2018, 08:50:06 AM

Title: node.js
Post by: richardh on October 26, 2018, 08:50:06 AM
I just wanted to check whether there is any likelihood of node.js being updated to a more recent version for picore?

As far as  I can tell we have v6.5 available for picore but v8.12/v11.0 seem to be current.

Many thanks, R.
Title: Re: node.js
Post by: vladosam on October 26, 2018, 09:57:40 AM
You can try to compile node.js. Something like this:

tce-load -wo make gcc compiletc openssl-dev squashfs-tools git python python-dev
tce-load -i make gcc compiletc openssl-dev squashfs-tools git python python-dev

mkdir -p /tmp/nodejs/usr/local

cd /tmp
wget http://nodejs.org/dist/v8.11.3/node-v8.11.3.tar.gz

tar -xvf node-v8.11.3.tar.gz

cd node-v8.11.3

./configure --without-snapshot --prefix=/tmp/nodejs/usr/local

mksquashfs /tmp/nodejs/usr/local /tmp/nodejs_8_11_3.tcz

cp /tmp/nodejs_8_11_3.tcz /mnt/mmcblk0p2/tce/optional/

tce-load -i nodejs_8_11_3.tcz
Title: Re: node.js
Post by: Rich on October 26, 2018, 10:06:09 AM
Hi vladosam
You can try to compile node.js. Something like this:

tce-load -wo make gcc compiletc openssl-dev squashfs-tools git python python-dev
tce-load -i make gcc compiletc openssl-dev squashfs-tools git python python-dev ...
Both  make  and  gcc  are dependencies of  compiletc  and do not need to be loaded separately.
Title: Re: node.js
Post by: richardh on October 26, 2018, 11:01:58 AM
Thanks, I may try that although I assume that node is a large build and I am not sure how well my 1st generation pi will cope...
Title: Re: node.js
Post by: vladosam on October 26, 2018, 11:56:20 AM
Thanks Rich i will update my wiki, how to, read me first all realted with piCore file. :)
Title: Re: node.js
Post by: Rich on October 26, 2018, 12:20:22 PM
Hi vladosam
The  .tree  file lists the entire dependency tree:
http://tinycorelinux.net/9.x/armv6/tcz/compiletc.tcz.tree