Zulip Chat Archive
Stream: general
Topic: Install help needed
Shuffle (Dec 01 2024 at 00:34):
run "lake build" gets "error: toolchain 'leanprover/lean4:v4.9.0-rc1' is not installed", how to resolve it?
Julian Berman (Dec 01 2024 at 00:38):
What is type -a lake
and how did you install elan?
Shuffle (Dec 01 2024 at 00:39):
Shuffle (Dec 01 2024 at 00:40):
Julian Berman 发言道:
What is
type -a lake
and how did you install elan?
and i should installed elan use the default vscode extension
Shuffle (Dec 01 2024 at 00:41):
image.png
I already have stable and 4.7.0 installed in .elan/toolchains
I am curious that we can install only two versions of lean? Or indeed more than two
Julian Berman (Dec 01 2024 at 00:46):
Shuffle said:
image.png
I already have stable and 4.7.0 installed in .elan/toolchainsI am curious that we can install only two versions of lean? Or indeed more than two
That's essentially the entire purpose of elan
, yeah -- so something strange is happening.
Julian Berman (Dec 01 2024 at 00:46):
What does elan toolchain install 4.9.0-rc1
say?
Shuffle (Dec 01 2024 at 00:47):
Shuffle (Dec 01 2024 at 00:48):
image.png
Actually this works
Julian Berman (Dec 01 2024 at 00:50):
Yes, you left off the toolchain
in the first one.
Julian Berman (Dec 01 2024 at 00:50):
And now does lake build
work?
Julian Berman (Dec 01 2024 at 00:50):
Also what's elan --version
?
Shuffle (Dec 01 2024 at 00:51):
elan --version
is elan 3.1.1 (71ddc6633 2024-02-22)
, and lake build
works now.
Shuffle (Dec 01 2024 at 00:52):
Thanks a lot. I am a bit confused by how elan works, just as you see i forget the toolchain
, I cannot find detailed document for elan
Julian Berman (Dec 01 2024 at 01:03):
That looks right. I'm confused as to why your lake
didn't install the toolchain automatically, as that's what the wrapper is meant for. Your PATH looks a bit screwy (as evidenced by seeing the same directory 10 times or whatever) but that shouldn't affect things.
Julian Berman (Dec 01 2024 at 01:06):
I actually don't know where longer docs for elan
live either now that I think about it, if they do live somewhere. There seems to be no man page. Eventually it will live here: https://lean-lang.org/doc/reference/latest/Elan/#elan but the page is a TODO right now.
Julian Berman (Dec 01 2024 at 01:06):
elan --help
will have at least basic information.
Shuffle (Dec 01 2024 at 01:12):
thanks a lot. I think they will have a document later, but for now let me just use the elan --help
Julian Berman (Dec 01 2024 at 01:27):
Most of the point is you really shouldn't have to interact with elan at all, so the "real problem" is if lake build
is not automatically installing toolchains for you. If it happens again I think we try to figure out why.
Last updated: May 02 2025 at 03:31 UTC