Welcome!
Forum users

Current releases
--MX-23 release info here
--Migration information to MX-23 here
--antiX-23.1 (Arditi del Popolo) release info here

Important information
--If in starting your system it boots to an unwanted Desktop, right click desktop, then select leave and logout. At the
login screen there is a session chooser at the top of the screen.

News
-- MX Linux on social media: here
-- New Forum Features, Marking Solved and Referencing a User: here

How to install LTS Nodejs

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

Re: How to install LTS Nodejs

#11 Post by Biofobico »

Thank you.

User avatar
outlaw
Posts: 20
Joined: Thu Jul 13, 2006 6:35 pm

Re: How to install LTS Nodejs

#12 Post by outlaw »

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
Developer
Posts: 12745
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to install LTS Nodejs

#13 Post by Stevo »

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
Developer
Posts: 12745
Joined: Fri Dec 15, 2006 8:07 pm

Re: How to install LTS Nodejs

#14 Post by Stevo »

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
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#15 Post by stsoh »

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
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#16 Post by Biofobico »

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
Posts: 183
Joined: Sun Aug 20, 2017 10:11 am

Re: How to install LTS Nodejs

#17 Post by stsoh »

@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
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#18 Post by Biofobico »

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

bigbenaugust
Posts: 56
Joined: Wed Dec 20, 2017 10:41 am

Re: How to install LTS Nodejs

#19 Post by bigbenaugust »

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
Posts: 14
Joined: Thu Jan 18, 2018 5:32 pm

Re: How to install LTS Nodejs

#20 Post by Biofobico »

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”