Sakai 23.2 and later (and master) does not work on Ubuntu 18 or earlier (not really a bug per se)

9 views
Skip to first unread message

Charles Severance

unread,
May 22, 2024, 1:24:57 PMMay 22
to dev sakai
Hi all,

I was upgrading one of my Ubuntu servers to the latest 23.x / 23.2 and it would not compile with the following message:

[INFO] Running 'npm install' in /root/sakai-scripts/trunk/webcomponents/tool/src/main/frontend

[INFO] /root/sakai-scripts/trunk/webcomponents/tool/target/node/node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by /root/sakai-scripts/trunk/webcomponents/tool/target/node/node)

The problem is not in our code in any way - it is in the node dependency that is installed to do all the ESBuild magic. The version of node/npm requires Ubuntu 20 or later.

Don’t make too much of fun of me running a 6-year-old Ubuntu (out of support for over a year) in light production :) It seems like yesterday that I was upgrading from 14 to 18.

I upgraded to Ubuntu 20 and all was well.

So check your Ubuntu version before you upgrade. Hopefully you won’t be fat back like :)

/Chuck


Sam Ottenhoff

unread,
May 22, 2024, 1:29:14 PMMay 22
to Charles Severance, dev sakai
Yes, definitely upgrade your Ubuntu if you can. If you cannot, and you want to build right now, I believe you can still build while downgrading the dependencies:

  find . -name pom.xml -exec sed -i 's:<nodeVersion>v18.16.1</nodeVersion>:<nodeVersion>v16.15.0</nodeVersion>:g' {} \;
  find . -name pom.xml -exec sed -i 's:<npmVersion>9.5.1</npmVersion>:<npmVersion>8.5.5</npmVersion>:g' {} \;

--
You received this message because you are subscribed to the Google Groups "Sakai Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sakai-dev+...@apereo.org.
To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/sakai-dev/B12ADBA7-7054-4A6F-B1E9-728EC85302CC%40umich.edu.
Reply all
Reply to author
Forward
0 new messages