You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
LeanInk can't install itself for brew-installed elan, the error output is:
Installing LeanInk...
cp: directory /Users/[MYUSERNAME]/.elan/bin does not exist
Failed copying LeanInk to .elan/bin!
Under my .elan, ls shows:
settings.toml tmp toolchains update-hashes
no sign of bin.
The elan in use is:
% ls -lhta `which elan`
[OMITTED] /usr/local/bin/elan -> ../Cellar/elan-init/1.4.1/bin/elan
Expected behaviour
LeanInk could detect if elan is intalled into ~/.elan and act accordingly such as soft-lining from /usr/local/bin/.
Reproducing the issue
# 1. Follow https://leanprover-community.github.io/install/macos.html#m1-macs--apple-silicon to install elan on M1 Macs / Apple Silicon or just `brew install elan-init` for other Macs
# 2. Install LeanInk
sh -c "$(curl https://raw.githubusercontent.com/leanprover/LeanInk/main/init.sh -sSf)"
Environment information
Operating System: macOS Monterey 12.4 on MacBookPro (16-inch, 2021) with Apple M1 Pro
Fix the line ELAN_BIN="$HOME/.elan/bin/" in https://github.com/leanprover/LeanInk/blob/main/install.sh that assumes "that lean is already installed as expected we can assume that the .elan folder already exists and is correctly linked."
Description
LeanInk can't install itself for brew-installed elan, the error output is:
Under my
.elan,lsshows:no sign of
bin.The
elanin use is:Expected behaviour
LeanInk could detect if elan is intalled into
~/.elanand act accordingly such as soft-lining from/usr/local/bin/.Reproducing the issue
Environment information
Suggested fix
Two options:
ELAN_BIN="$HOME/.elan/bin/"in https://github.com/leanprover/LeanInk/blob/main/install.sh that assumes "that lean is already installed as expected we can assume that the .elan folder already exists and is correctly linked."~/.elanas well1 is more pratical.
Additional Notes
I've bypassed the issue by following https://github.com/leanprover/LeanInk#building-from-source and manually copy
leanInkto/usr/local/binwhich seems to be working fine.