Article 6J73A Can I run Node.js 20 on Slackware 14.2

Can I run Node.js 20 on Slackware 14.2

by
RXQ
from LinuxQuestions.org on (#6J73A)
I develop an app that needs to run on both Slackware 14.2 and 15.0
In the CI pipeline by Azure DevOps there are two Slackware containers running the build.
(App is distributed as source, but the CI verifies that it compiles for both)

The Slackware 14.2 build currently shows this warning about Node.js

Quote:
##[warning]The container operating system doesn't support Node20. Using Node16 instead. Please upgrade the operating system of the container to remain compatible with future updates of tasks: https://github.com/nodesource/distributions
This is not a problem now, but it may be in the future.

I looked into upgrading Node.js, but failed:
- I changed the version in the 14.2 Slackbuild, but the the folder structure is different now.
- I tried the 15.0 Slackbuild on 14.0, but it requires a newer version of gcc (> 10)
- The binary distribution doesn't work, because of incompatible glibc:
root@64ecb24028c2 (32bit):/nodejs/node-v20.11.0-linux-x64/bin# ./node
./node: /lib64/libm.so.6: version `GLIBC_2.27' not found (required by ./node)
./node: /lib64/libc.so.6: version `GLIBC_2.28' not found (required by ./node)
./node: /lib64/libc.so.6: version `GLIBC_2.25' not found (required by ./node)
- I tried the 15.0 Slackbuild with a custom toolchain (with old glibc), but ran into issues with openssl. The one on SL14.2 might be too old.

Is there any chance to pull this off? Or is it just not feasible?
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments