aheckmann / m

mongodb version management
MIT License
267 stars 55 forks source link

Prebuilt binaries for linux-x86_64 4.2.0 do not appear to be available for Ubuntu 22 #93

Closed stennie closed 1 year ago

stennie commented 1 year ago

After updating to m 1.8.8 I am able to install all 3.x versions and all 4.4 versions. But all 4.2 versions give same error about not having prebuilt binaries. It would be understandble if 4.x versions were unavailable at all because of Ubuntu 22.04. So far 3.x, 4.4 and 5.3 versions work just fine and only 4.2 versions seem to beinconsistent.Whichisboth wierdand bad since there is no mongo upgrade path from 3.x without 4.2. m --version 1.8.8 cat /etc/lsb-release DISTRIB_ID=neon DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION="KDE neon 5.27"

Originally posted by @venorme in https://github.com/aheckmann/m/issues/92#issuecomment-1770116701

stennie commented 1 year ago

@venorme I will fix the binary download issue, but as noted in #92 unsupported O/S + MongoDB combinations may lead to dependency issues.

Specifically, Ubuntu 22.04 uses OpenSSL 3.x which does not provide the OpenSSL 1.1 libcrypto.so.1.1 library used by MongoDB binaries targeting Ubuntu 20.04.

An expected error would be:

error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

If you are using m for version upgrades, the safest path would be installing into a container or VM with an O/S supported by the version of MongoDB server you want to use based on the Platform Support Matrix. Ubuntu 20.04 would cover 4.4 => 7.0 (and maybe earlier binaries, but you'd have to test).

Regards, Stennie