Zulip Chat Archive

Stream: new members

Topic: Windows installation


JDM (Sep 22 2018 at 08:57):

Hi everyone! I'm trying to get Lean to work with Visual Studio, but I'm having trouble setting the installation path. Can anyone help? Much appreciated!

Kevin Buzzard (Sep 22 2018 at 09:50):

I'm sorry (on behalf of the community). Installation is still a pain, especially on Windows. Does this https://xenaproject.wordpress.com/2017/12/02/how-to-install-mathlib-and-keep-it-up-to-date/ help? There's a bit saying something like "Pro tip -- if's in red it's bad, if it's in orange it's good". I had users installing Lean in C:\Program Files and then having problems with quoting the space, which seems hit and miss to me. If it doesn't help then tell me how to improve that post, and/or say more precisely what the problem is. People here can help but it is a real bore getting started.

JDM (Sep 22 2018 at 11:01):

No need to be sorry, as I understand there's a lot of pain involved in trying to find a working solution for Windows, and as this is an open source effort, I can only be awestruck by the efforts already done :-) I'll try to see if your post is of any help, and if not I might just try VirtualBox again (but I had some trouble with establishing an internet connection in the
past, which is why I've avoided it until now) Already many thanks :-)

Hendrik (Sep 24 2018 at 08:31):

I'm sorry (on behalf of the community). Installation is still a pain, especially on Windows. Does this https://xenaproject.wordpress.com/2017/12/02/how-to-install-mathlib-and-keep-it-up-to-date/ help? There's a bit saying something like "Pro tip -- if's in red it's bad, if it's in orange it's good". I had users installing Lean in C:\Program Files and then having problems with quoting the space, which seems hit and miss to me. If it doesn't help then tell me how to improve that post, and/or say more precisely what the problem is. People here can help but it is a real bore getting started.

I would replace the following text by something more elaborate:

On Windows, you are going to need something called “msys2” (which will give you a terminal window so you can type commands in on a “command line” instead of just clicking on stuff).

It does not only give you a terminal but it actually gives you the only working terminal. There should be an explicit mention that powershell, mingw, cmd all don't work (but git bash may work for most operations).

In the long run, leanpkg itself should potentially try to find out what shell environment it is started from and then avoid using "test", etc.. Getting it to work 100% with git bash would be a great intermediate step.

A second comment I have is that users of a multi-user system often don't have the choice to avoid path names without spaces. They may be authorized to install programs in Z:\Users\Bob the builder\Program Files\ only. This is especially true for students.

Third, these instructions should probably be very prominently placed in the manual (not via a link but the text itself).

Many thanks for all the efforts!

Kevin Buzzard (Sep 24 2018 at 08:33):

One of the biggest mistakes I ever made on a Windows machine was creating a userid with spaces in


Last updated: Dec 20 2023 at 11:08 UTC