Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

How to install LTS Nodejs

Message
Author
User avatar
Biofobico
Forum Novice
Forum  Novice
Posts: 24
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#11 Post by Biofobico » Mon Feb 05, 2018 3:16 pm

Thank you.

User avatar
outlaw
Forum Regular
Forum Regular
Posts: 298
Joined: Thu Jul 13, 2006 6:35 pm

Re: How to install LTS Nodejs

#12 Post by outlaw » Mon Feb 05, 2018 8:16 pm

The read me file that is included with download does not appear
to have any installation instructions.

Perhaps one of the MX community members with more experience than myself
maybe able to help you. It could be as simple as setting an environmental variable.

You might also consider joining the nodejs community.
https://foundation.nodejs.org/community
These folks will certainly be able to help with the install and answer any future questions you might have.

Hope this helps.
Tom
Naturally nuts no ... pharmaceuticals required.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17051
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to install LTS Nodejs

#13 Post by Stevo » Mon Feb 05, 2018 9:47 pm

STOP-STOP-DO NOT ADD THE SID REPOSITORY BLINDLY TO MX 17!!!

This is very likely to break your install beyond repair.

Read the Debian wiki: https://wiki.debian.org/DontBreakDebian

and cautionary tales: http://forums.debian.net/viewtopic.php?&t=114130

The safe way would be a backport, like we do for our MX repositories.

It looks like we need to add this warning prominently to the User Manual.

Edit: We only need to backport libuv1 in order to build the Sid version on Stretch, according to the Build-depends. It might be a pretty heavy build--these web things often are.

User avatar
Stevo
Forum Veteran
Forum Veteran
Posts: 17051
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to install LTS Nodejs

#14 Post by Stevo » Mon Feb 05, 2018 10:57 pm

Hmmm, the nodejs build fails after a while with

Code: Select all

../src/node_http2.h:1055:36: error: there are no arguments to 'nghttp2_rcbuf_is_static' that depend on a template parameter, so a declaration of 'nghttp2_rcbuf_is_static' must be available [-fpermissive]
     if (nghttp2_rcbuf_is_static(buf)) {
                                    ^
../src/node_http2.h:1055:36: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
So it looks like we have to add "-fpermissive" to the build flags if we are going to build it with gcc-6 instead of gcc-7, or else see if some Debian patch added whatever makes the build fail.

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 449
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#15 Post by stsoh » Tue Feb 06, 2018 1:58 am

Biofobico wrote:
stsoh wrote:...pls delete this.
So what is the Sid repo address? I went searching for it at the Debian's site, but found none.
@Biofobico, pls delete content.
@Steveo, my apology.
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

User avatar
Biofobico
Forum Novice
Forum  Novice
Posts: 24
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#16 Post by Biofobico » Tue Feb 06, 2018 8:03 am

Stevo wrote:STOP-STOP-DO NOT ADD THE SID REPOSITORY BLINDLY TO MX 17!!!

This is very likely to break your install beyond repair.

Read the Debian wiki: https://wiki.debian.org/DontBreakDebian

and cautionary tales: http://forums.debian.net/viewtopic.php?&t=114130

The safe way would be a backport, like we do for our MX repositories.

It looks like we need to add this warning prominently to the User Manual.

Edit: We only need to backport libuv1 in order to build the Sid version on Stretch, according to the Build-depends. It might be a pretty heavy build--these web things often are.
I didn't add the repo. Decide to wait for some alternatives and it seems that I made the right call :happy:
@stsoh You were only trying to help. No worries :cool:

User avatar
stsoh
Forum Regular
Forum Regular
Posts: 449
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#17 Post by stsoh » Tue Feb 06, 2018 8:14 am

@Biofobico, can u delete my quote in #9, viewtopic.php?p=434663#p434663.
MX-17.1_x64 Horizon, G41M-P33 Combo (MS-7592), Pentium E5400 (2706 MHz), 8Gb RAM (984 MT/s),
Intel 4 Series Integrated Graphics, Realtek PCIe Fast RTL8101/2/6E, PCI Gigabit RTL8169 Ethernets.
Accepted Linux when i found MX-Linux in 2016.

User avatar
Biofobico
Forum Novice
Forum  Novice
Posts: 24
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#18 Post by Biofobico » Tue Feb 06, 2018 10:02 am

stsoh wrote:@Biofobico, can u delete my quote in #9, viewtopic.php?p=434663#p434663.
Done.

bigbenaugust
Forum Novice
Forum  Novice
Posts: 50
Joined: Wed Dec 20, 2017 10:41 am

Re: How to install LTS Nodejs

#19 Post by bigbenaugust » Tue Feb 06, 2018 1:09 pm

When I ran into this, I edited the setup_8.x script and added a line in the array that equated MX Horizon to Stretch and it worked out.

If I had my MX machine in front of me, I'd get it for you... or I'll just download it real quick. ;)

Here is the array you need to add to:

Code: Select all

check_alt "Kali"          "sana"     "Debian" "jessie"
check_alt "Kali"          "kali-rolling" "Debian" "jessie"
check_alt "Sparky Linux"  "Nibiru"   "Debian" "buster"
check_alt "Linux Mint"    "maya"     "Ubuntu" "precise"
check_alt "Linux Mint"    "qiana"    "Ubuntu" "trusty"
check_alt "Linux Mint"    "rafaela"  "Ubuntu" "trusty"
check_alt "Linux Mint"    "rebecca"  "Ubuntu" "trusty"
check_alt "Linux Mint"    "rosa"     "Ubuntu" "trusty"
check_alt "Linux Mint"    "sarah"    "Ubuntu" "xenial"
check_alt "Linux Mint"    "serena"   "Ubuntu" "xenial"
check_alt "Linux Mint"    "sonya"    "Ubuntu" "xenial"
check_alt "Linux Mint"    "sylvia"   "Ubuntu" "xenial"
check_alt "LMDE"          "betsy"    "Debian" "jessie"
check_alt "elementaryOS"  "luna"     "Ubuntu" "precise"
check_alt "elementaryOS"  "freya"    "Ubuntu" "trusty"
check_alt "elementaryOS"  "loki"     "Ubuntu" "xenial"
check_alt "Trisquel"      "toutatis" "Ubuntu" "precise"
check_alt "Trisquel"      "belenos"  "Ubuntu" "trusty"
check_alt "Trisquel"      "flidas"   "Ubuntu" "xenial"
check_alt "BOSS"          "anokha"   "Debian" "wheezy"
check_alt "bunsenlabs"    "bunsen-hydrogen" "Debian" "jessie"
check_alt "Tanglu"        "chromodoris" "Debian" "jessie"
I added a line to this array that looks like:

Code: Select all

check_alt "MX"        "Horizon" "Debian" "stretch"
then re-ran the script as root and it worked as expected.
--Ben

User avatar
Biofobico
Forum Novice
Forum  Novice
Posts: 24
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#20 Post by Biofobico » Tue Feb 06, 2018 2:12 pm

bigbenaugust wrote:When I ran into this, I edited the setup_8.x script and added a line in the array that equated MX Horizon to Stretch and it worked out.

If I had my MX machine in front of me, I'd get it for you... or I'll just download it real quick. ;)

Here is the array you need to add to:

Code: Select all

check_alt "Kali"          "sana"     "Debian" "jessie"
check_alt "Kali"          "kali-rolling" "Debian" "jessie"
check_alt "Sparky Linux"  "Nibiru"   "Debian" "buster"
check_alt "Linux Mint"    "maya"     "Ubuntu" "precise"
check_alt "Linux Mint"    "qiana"    "Ubuntu" "trusty"
check_alt "Linux Mint"    "rafaela"  "Ubuntu" "trusty"
check_alt "Linux Mint"    "rebecca"  "Ubuntu" "trusty"
check_alt "Linux Mint"    "rosa"     "Ubuntu" "trusty"
check_alt "Linux Mint"    "sarah"    "Ubuntu" "xenial"
check_alt "Linux Mint"    "serena"   "Ubuntu" "xenial"
check_alt "Linux Mint"    "sonya"    "Ubuntu" "xenial"
check_alt "Linux Mint"    "sylvia"   "Ubuntu" "xenial"
check_alt "LMDE"          "betsy"    "Debian" "jessie"
check_alt "elementaryOS"  "luna"     "Ubuntu" "precise"
check_alt "elementaryOS"  "freya"    "Ubuntu" "trusty"
check_alt "elementaryOS"  "loki"     "Ubuntu" "xenial"
check_alt "Trisquel"      "toutatis" "Ubuntu" "precise"
check_alt "Trisquel"      "belenos"  "Ubuntu" "trusty"
check_alt "Trisquel"      "flidas"   "Ubuntu" "xenial"
check_alt "BOSS"          "anokha"   "Debian" "wheezy"
check_alt "bunsenlabs"    "bunsen-hydrogen" "Debian" "jessie"
check_alt "Tanglu"        "chromodoris" "Debian" "jessie"
I added a line to this array that looks like:

Code: Select all

check_alt "MX"        "Horizon" "Debian" "stretch"
then re-ran the script as root and it worked as expected.
I new to linux, so this is borderline sorcery to me. :confused:
I'm learning Javascript and really enjoying MX, but if I'll always encounter these kind of "problems" regarding latest web development packages maybe MX isn't the right choice for me.

Post Reply

Return to “Software / Configuration”