Daml command not found
Im looking to install, up to echo $JAVA_HOME seems all fine until I went to type in daml version. I am on Mac Pro M1. Getting the error zsh: command not found: daml
Hi @jjl,
Sorry to hear you’re having trouble!
Can you walk me through the exact set of steps you have performed to install Daml?
I followed what is in the documentation .
curl -sSL https://get.daml.com/ | sh
daml command didn’t work so i did the env setup.
echo $SHELL returns zsh
ran this individually
echo 'export JAVA_HOME="$(/usr/libexec/java_home)"' >> ~/.zprofile
echo 'export PATH="$HOME/.daml/bin:$PATH"' >> ~/.zprofile
echo $JAVA_HOME
returns /Users/myname/Library/Java/JavaVirtualMachines/semeru-18.0.2/Contents/Home
daml version
returns zsh: command not found: daml
edit: I also rebooted the computer.
Can you share the result of ls ~/.daml please?
bash_completions.sh daml-config.yaml zsh
bin sdk
ok i was able to solve by following this response
For getting DAML in your path you can do the following depending on which shell you’re using. To determine the shell you’re using you can run: echo $0 It’ll tell you either ~bash or zsh, once you’ve figured that out run one of the sets of commands below Bash: echo "export PATH=$HOME/.daml/bin:$PATH" >> ~/.bash_profile source ~/.bash_profile Zsh: echo "export PATH=$HOME/.daml/bin:$PATH" >> ~/.zshrc echo "fpath=(~/.daml/zsh $fpath)" >> ~/.zshrc source ~/.zshrc
Thank you for your help.