mcs installed using snap does not work on Ubuntu 22.04 due to glibc version incompatibility
slovdahl opened this issue · comments
I installed mcs
using:
$ sudo snap install maven-central-search
But when I try to run it I only get this:
$ mcs
/snap/maven-central-search/28/bin/mcs: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /snap/maven-central-search/28/bin/mcs)
/snap/maven-central-search/28/bin/mcs: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by /snap/maven-central-search/28/bin/mcs)
FWIW, I also tried switching to the latest/edge
channel, but got the same problem.
$ sudo snap info maven-central-search
name: maven-central-search
summary: Maven Central Search
publisher: Maarten Mulders
store-url: https://snapcraft.io/maven-central-search
license: unset
description: |
Use Maven Central Repository Search from your command line!
commands:
- maven-central-search.mcs
snap-id: lv8DTOSIZScGeVES0X8acuytYVgQat31
tracking: latest/stable
refresh-date: today at 08:53 EEST
channels:
latest/stable: 0.3.1 2023-03-28 (28) 12MB -
latest/candidate: 0.3.1 2023-03-28 (28) 12MB -
latest/beta: 0.3.1 2023-03-28 (28) 12MB -
latest/edge: 0.3.3 2023-05-03 (30) 12MB -
installed: 0.3.1 (28) 12MB -
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
$ uname -a
Linux desk 6.3.1-x64v3-xanmod1 #0~20230503.cf0c658 SMP PREEMPT_DYNAMIC Wed May 3 07:36:18 UTC x86_64 x86_64 x86_64 GNU/Linux
$ dpkg -l | grep libc6
ii libc6:amd64 2.35-0ubuntu3.1 amd64 GNU C Library: Shared libraries
ii libc6:i386 2.35-0ubuntu3.1 i386 GNU C Library: Shared libraries
Thanks for reporting this, @slovdahl. I won't have access to an Ubuntu workstation for a few more days, so unfortunately it will take some time before I can investigate.
I recall I have seen issues with glibc versions earlier, let's hope I can take inspiration from from how I resolved them back then 🤞🏻
@slovdahl, once again thanks for reporting this issue. I consider switching to a static executable for Linux.
Can you please download the artifacts from this PR build, unpack them, then unpack mcs-0.3.4-SNAPSHOT-linux-x86_64.zip and see if the mcs
executable inside that one works for you?
Thanks for the quick turnaround @mthmulders!
Yes, I can confirm that it works:
slovdahl@desk:~/mcs-test/mcs-0.3.4-SNAPSHOT-linux-x86_64/bin$ ./mcs
Missing required subcommand
Usage: mcs [-hV] [COMMAND]
-h, --help Display this help message and exits
-V, --version Show version number
Commands:
search Search artifacts in Maven Central by coordinates
class-search Search artifacts in Maven Central by class name
slovdahl@desk:~/mcs-test/mcs-0.3.4-SNAPSHOT-linux-x86_64/bin$ ./mcs search com.google.guava
Searching for com.google.guava...
Found 25 results (showing 20)
Coordinates Last updated
=========== ============
hu.blackbelt.bundles.guava:com.google.guava 23 Jul 2019 at 19:39 (EEST)
com.google.guava:guava-bom 28 Feb 2022 at 23:19 (EET)
com.google.guava:guava-parent 28 Feb 2022 at 23:17 (EET)
com.google.guava:listenablefuture 11 Sep 2018 at 22:40 (EEST)
com.google.guava:guava-gwt 28 Feb 2022 at 23:30 (EET)
com.google.guava:guava 28 Feb 2022 at 23:18 (EET)
com.google.guava:failureaccess 19 Nov 2018 at 19:57 (EET)
org.kie.modules:com-google-guava-main 18 Oct 2016 at 19:13 (EEST)
com.google.guava:guava-parent-jdk5 23 Apr 2014 at 00:08 (EEST)
com.google.guava:guava-testlib 28 Feb 2022 at 23:21 (EET)
org.netbeans.external:com-google-guava 21 Feb 2020 at 18:30 (EET)
com.google.guava:guava-beta-checker 30 Nov 2017 at 22:48 (EET)
com.google.guava:guava-tests 26 Oct 2017 at 23:14 (EEST)
com.google.guava:guava-tests-jdk5 23 Apr 2014 at 00:13 (EEST)
com.google.guava:guava-jdk5 23 Apr 2014 at 00:09 (EEST)
com.google.guava:guava-bootstrap-jdk5 23 Apr 2014 at 00:08 (EEST)
com.google.guava:guava-bootstrap 30 Mar 2012 at 17:15 (EEST)
org.openengsb.wrapped:com.google.guava-all 10 Dec 2010 at 00:37 (EET)
com.google.guava:guava-io 26 Apr 2010 at 16:09 (EEST)
com.google.guava:guava-concurrent 26 Apr 2010 at 16:09 (EEST)