Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Ubuntu 22.04 #90

Closed
boutell opened this issue Sep 18, 2023 · 6 comments
Closed

Does not work with Ubuntu 22.04 #90

boutell opened this issue Sep 18, 2023 · 6 comments

Comments

@boutell
Copy link
Contributor

boutell commented Sep 18, 2023

First: thanks so much for your work on m!

In Ubuntu 22.04, the following error comes up for mongodb 5.0, 6.0 and 7.0 (I didn't try anything older, but presumably the same):

ubuntu@ip-172-26-6-41:~$ npm install -g m
added 1 package, and audited 2 packages in 559ms
...
ubuntu@ip-172-26-6-41:~$ m 5.0
>> Checking for stable release of MongoDB 5.0
MongoDB version 5.0.21 is not installed.
Installation may take a while. Would you like to proceed? [y/N] y
...
Activating: MongoDB Server 5.0.21, MongoDB Database Tools 
ubuntu@ip-172-26-6-41:~$ mkdir -p ~/mongodb-data/5.0
ubuntu@ip-172-26-6-41:~$ mongod --dbpath=/home/apostrophe/mongodb-data/5.0
mongod: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory

I do have the right folder in my PATH:

ubuntu@ip-172-26-6-41:~$ which mongod
/home/ubuntu/.local/bin/mongod

Ubuntu 22.04 moved to openssl 3. But mongod community edition works fine on Ubuntu 22.04. It sounds like m is probably downloading the wrong binaries.

Any suggestions?

Thanks!

@stennie
Copy link
Collaborator

stennie commented Sep 19, 2023

Hi @boutell,

Per the MongoDB Production Notes, Ubuntu 22.04 is only supported for MongoDB 6.0.4 or later.

MongoDB generally does not backport release packages to O/S versions which were released much later than the corresponding major version of MongoDB, so if you need MongoDB 5.0 on an Ubuntu 22.04 host you would have to install this in a Docker instance or VM.

However, m did need an update to check for Ubuntu 22 packages on newer server releases.

Can you try running the current m version from GitHub and confirm if this now works for a MongoDB 6.04+ install:

wget https://raw.githubusercontent.com/aheckmann/m/master/bin/m && chmod +x ./m
./m 6.0

m --version should report 1.8.6-dev

Thanks,
Stennie

@boutell
Copy link
Contributor Author

boutell commented Sep 19, 2023 via email

@boutell
Copy link
Contributor Author

boutell commented Sep 19, 2023

I tried your command and it worked great, almost.

Specifically leaving off the .0 does not work.

But ./m 6.0 and ./m 7.0 both worked.

With just ./m 7 I get:

Prebuilt binaries for linux-x86_64 7 do not appear to be available.

Thanks!

@boutell
Copy link
Contributor Author

boutell commented Sep 19, 2023

(m --version reports the right version.)

@stennie
Copy link
Collaborator

stennie commented Sep 20, 2023

Specifically leaving off the .0 does not work.

But ./m 6.0 and ./m 7.0 both worked.

With just ./m 7 I get:

Sorry @boutell, that was a bad usage example (I also edited my comment above to fix). Currently you do need to include the minor version (eg m 6.0 for latest 6.0.x release).

Regards,
Stennie

@stennie stennie closed this as completed Sep 20, 2023
@boutell
Copy link
Contributor Author

boutell commented Sep 20, 2023

💯 Thanks so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants