Skip to content
Discussions/App Development/Daml command not foundForum ↗

Daml command not found

App Development6 posts462 views1 likesLast activity Sep 2022
JJ
jjlOP
Sep 2022

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

GA
Gary_Verhaegen
Sep 2022

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?

JJ
jjl
Sep 2022

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.

GA
Gary_Verhaegen
Sep 2022

Can you share the result of ls ~/.daml please?

JJ
jjl
Sep 2022

bash_completions.sh daml-config.yaml zsh
bin sdk

JJ
jjl
Sep 2022

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.

← Back to Discussions