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

Docs say it works on Windows 10; has it been tried on Windows 11? #97

Open
boutell opened this issue Oct 9, 2024 · 4 comments
Open
Assignees
Labels

Comments

@boutell
Copy link
Contributor

boutell commented Oct 9, 2024

Worth updating the README if that is also supported. Thanks again for a great tool.

@stennie
Copy link
Collaborator

stennie commented Oct 12, 2024

Hi @boutell,

Should be fine on Windows 11 (or at least, there have not had been any reports of issues).

If you are able to confirm, I will update the README.

Regards,
Stennie

@stennie stennie self-assigned this Oct 12, 2024
@boutell
Copy link
Contributor Author

boutell commented Nov 7, 2024

Hi Stennie,

It does not seem to work so far.

If I install nodejs with nvm for windows, launch powershell, and run npm install -g m, it installs (after I give permission for scripts to run at all), but then when I try to use m is prints an error about not finding bash.exe. Sounds like some flavor of bash is mandatory, OK.

So I installed git for Windows, aka "git bash," and gave that a try. Now when I try "m install 8" I get:

Prebuilt binaries for mingw64_nt-10.0-26100-x86_64 8 do not appear to be available.

For supported platforms, please see:
   https://www.mongodb.com/docs/manual/administration/production-notes/

To build from source, check the relevant build notes in GitHub:
   https://github.com/mongodb/mongo/blob/master/docs/building.md

I got a similar error with m install 6

This machine is running Windows 11 Pro (I did check).

Hope this is helpful!

@stennie
Copy link
Collaborator

stennie commented Dec 16, 2024

Hi @boutell! m is a bash script which does assume a unix-like environment with command-line tools like grep, awk, sed, and uname. If this isn't working well for you, an alternative approach would be to download the desired Windows binaries from MongoDB directly: https://mongodb.com/download.

I suspect previous testers on Windows may have relied on the Windows Subsystem for Linux (WSL). I will try to find time to test this over the holiday break.

Regards,
Stennie

@boutell
Copy link
Contributor Author

boutell commented Dec 16, 2024

Hi Stennie,

Yes, I am not surprised that bash is mandatory. It does look though like "git bash" worked until it attempted to download what it believed to be the needed binary.

When I think about it this makes complete sense. mingw_64 counts as a different architecture from both regular Windows binaries and WSL Ubuntu binaries. MongoDB would have to be specially compiled for mingw, or the m script would have to be hacked to recognize mingw_64 and substitute the regular Windows binaries, which MIGHT work, but I wouldn't ask you to go there and then deal with the inevitable issues...

Oh well.

My educated guess is you'll have no trouble at all with WSL and it won't matter at all that it's Windows 11 hosting it versus Windows 10.

I know that hoping that this would work with a lighter solution like "git bash" was a bit of a hail mary, wishful-thinking move, but we're always looking for a way to lower the minimum learning curve to try out our stuff that depends on mongodb. We can still tell people to just use Atlas free tier if they aren't ready for WSL.

Thanks again for everything you've done with this module! Perhaps it's worth updating the README to specify WSL is a requirement for success on Windows since there are other ways to slide by and get bash.

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

No branches or pull requests

2 participants