Zulip Chat Archive

Stream: general

Topic: Darwin file , bin


Xhulja Kolgjini (Oct 11 2023 at 18:07):

I downloaded the Darwin file after I kept getting the error :
toolchain 'stable' does not have the binary /Users/xhuljakolgjini/.elan/toolchains/stable/bin/leanpkg
Command '['leanpkg', 'new', 'file']' returned non-zero exit status 1.

and then I analysed document. There is a file named /bin/ that is unreadable and I don't know which extension to install to read it. there was no suggestions from the VS.
Screenshot-2023-10-11-at-20.00.08.png

Xhulja Kolgjini (Oct 11 2023 at 18:07):

Screenshot-2023-10-11-at-19.58.16.png

Xhulja Kolgjini (Oct 11 2023 at 18:11):

Screenshot-2023-10-11-at-20.11.11.png
opened in data spell and look at this mess...why can't my computer read it?

Alex J. Best (Oct 11 2023 at 18:12):

What are you trying to do? The recommended way to install lean is by installing elan following https://github.com/leanprover/elan#installation

Alex J. Best (Oct 11 2023 at 18:12):

And the reason you cant read it is that it is a binary file not a text file. All executables are stored in this format, if you opened word.exe you would see something similar. Executables are built by compilers and not edited by humans by hand

Xhulja Kolgjini (Oct 11 2023 at 18:16):

I went thru all the steps of downloading elan the right way and it still gives me the binary issue

Xhulja Kolgjini (Oct 11 2023 at 18:17):

Screenshot-2023-10-11-at-20.17.13.png

Xhulja Kolgjini (Oct 11 2023 at 18:19):

Screenshot-2023-10-11-at-20.19.27.png

Alex J. Best (Oct 11 2023 at 18:20):

What does elan toolchains list and which lean output

Xhulja Kolgjini (Oct 11 2023 at 18:21):

Screenshot-2023-10-11-at-20.21.17.png

Xhulja Kolgjini (Oct 11 2023 at 18:21):

(base) xhuljakolgjini@Xhuljas-MBP ~ % which lean
/usr/local/bin/lean

Sebastian Ullrich (Oct 11 2023 at 18:21):

What are you trying to do? leanpkg is a Lean 3 tool

Xhulja Kolgjini (Oct 11 2023 at 18:22):

so what should I install instead

Xhulja Kolgjini (Oct 11 2023 at 18:23):

I use M1 Pro chip

Xhulja Kolgjini (Oct 11 2023 at 18:32):

https://github.com/leanprover/lake/blob/master/README.md

Alistair Tucker (Oct 11 2023 at 18:33):

It looks like you already have a working Lean 4 installation. Are you working with an old project that uses Lean 3? If not, stick with Lean 4 because, for one thing, installing Lean 3 is a bit tricky on a new Mac.

Alistair Tucker (Oct 11 2023 at 18:34):

Yes lake is the new (for Lean 4) version of leanpkg.

Xhulja Kolgjini (Oct 11 2023 at 18:34):

lol I just tried

mkdir test
cd test
lake new test

Xhulja Kolgjini (Oct 11 2023 at 18:34):

and it worked

Xhulja Kolgjini (Oct 11 2023 at 18:34):

how do I uninstall leanpkg now

Alistair Tucker (Oct 11 2023 at 18:37):

Maybe elan toolchain uninstall leanprover-community/lean:3.49.1?

Xhulja Kolgjini (Oct 11 2023 at 18:42):

info: uninstalling toolchain 'leanprover-community/lean:3.49.1'
info: toolchain 'leanprover-community/lean:3.49.1' uninstalled

Xhulja Kolgjini (Oct 11 2023 at 18:44):

(base) xhuljakolgjini@Xhuljas-MBP ~ % elan toolchain list
stable (default)
leanprover/lean4:nightly-2023-02-04
leanprover/lean4:nightly-2023-08-23
leanprover/lean4:stable
leanprover/lean4:v4.2.0-rc1


Last updated: Dec 20 2023 at 11:08 UTC