# Daml command not found

**URL:** <https://forum.canton.network/t/daml-command-not-found/5166>\
**Category:** App Development\
**Created:** [September 1, 2022, 2:05pm UTC](https://forum.canton.network/t/daml-command-not-found/5166 "2022-09-01T14:05:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjl](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jjl/32/4751_2.png) [@jjl](https://forum.canton.network/u/jjl)\
**Post date:** [September 1, 2022, 2:05pm UTC](https://forum.canton.network/t/daml-command-not-found/5166/1 "2022-09-01T14:05:36Z")

</div>

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`

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [September 1, 2022, 2:09pm UTC](https://forum.canton.network/t/daml-command-not-found/5166/2 "2022-09-01T14:09:06Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![jjl](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jjl/32/4751_2.png) [@jjl](https://forum.canton.network/u/jjl)\
**Post date:** [September 1, 2022, 2:20pm UTC](https://forum.canton.network/t/daml-command-not-found/5166/3 "2022-09-01T14:20:52Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Gary\_Verhaegen](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gary_verhaegen/32/81_2.png) [@Gary\_Verhaegen](https://forum.canton.network/u/Gary_Verhaegen)\
**Post date:** [September 1, 2022, 2:24pm UTC](https://forum.canton.network/t/daml-command-not-found/5166/4 "2022-09-01T14:24:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![jjl](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jjl/32/4751_2.png) [@jjl](https://forum.canton.network/u/jjl)\
**Post date:** [September 1, 2022, 2:25pm UTC](https://forum.canton.network/t/daml-command-not-found/5166/5 "2022-09-01T14:25:04Z")

</div>

bash\_completions.sh daml-config.yaml zsh  
bin sdk

---

<div class="post-metadata">

**Author:** ![jjl](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/jjl/32/4751_2.png) [@jjl](https://forum.canton.network/u/jjl)\
**Post date:** [September 1, 2022, 2:38pm UTC](https://forum.canton.network/t/daml-command-not-found/5166/6 "2022-09-01T14:38:54Z")

</div>

ok i was able to solve by following this response

> [@Command not found: daml](https://discuss.daml.com/t/command-not-found-daml/982/4):
>
> 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.
