# Command not found: daml

**URL:** <https://forum.canton.network/t/command-not-found-daml/982>\
**Category:** App Development\
**Created:** [August 4, 2020, 4:11pm UTC](https://forum.canton.network/t/command-not-found-daml/982 "2020-08-04T16:11:39Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Ho](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nicholas_ho/32/709_2.png) [@Nicholas\_Ho](https://forum.canton.network/u/Nicholas_Ho)\
**Post date:** [August 4, 2020, 4:11pm UTC](https://forum.canton.network/t/command-not-found-daml/982/1 "2020-08-04T16:11:39Z")

</div>

Hi, I am having an issue with running the code after I install it on my Mac. I have followed the instructions on the SDK documentation (1. installed dependencies, 2. installed the SDK, 3. added the daml bin to my path). However, when I run any daml command, it gives me the error that the command is not found. Can you please advise?

---

<div class="post-metadata">

**Author:** ![Martin\_Huschenbett](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/martin_huschenbett/32/372_2.png) [@Martin\_Huschenbett](https://forum.canton.network/u/Martin_Huschenbett)\
**Post date:** [August 4, 2020, 4:44pm UTC](https://forum.canton.network/t/command-not-found-daml/982/2 "2020-08-04T16:44:42Z")

</div>

Hi Nicholas\_Ho,

welcome to the DAML community and thanks for trying out DAML. 👋

Most ways to add the `daml` binary to your path modify your profile or shell configuration. Thus, you might need to restart you shell for the changes to be picked up. If that doesn’t work, you might even need to log out and log in again.

If that doesn’t help, please let me know and I’ll try my best to be of further assistance.

Cheers,

Martin.

---

<div class="post-metadata">

**Author:** ![Nicholas\_Ho](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nicholas_ho/32/709_2.png) [@Nicholas\_Ho](https://forum.canton.network/u/Nicholas_Ho)\
**Post date:** [August 4, 2020, 4:55pm UTC](https://forum.canton.network/t/command-not-found-daml/982/3 "2020-08-04T16:55:10Z")

</div>

Hi Martin,

Thanks for the quick response! I’ve restarted multiple times but it still does not seem to work unfortunately.

Upon installing the SDK with the curl command, I received a message about adding a line of code to my `~/.zshrc` before calling `compinit`. This is what I’m reading:

```haskell
Please add /Users/nicholasho/.daml/bin to your PATH.
Bash completions installed for DAML assistant.
Zsh completions installed for DAML assistant.
To use them, add '~/.daml/zsh' to your $fpath, e.g. by adding the following
to the beginning of '~/.zshrc' before you call 'compinit':
fpath=(~/.daml/zsh $fpath)

```

I haven’t actually done this yet since it wasn’t in the instruction document. Is that something I should do? And how exactly would I got about doing it?

Thanks,  
Nick

---

<div class="post-metadata">

**Author:** ![anthony](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/anthony/32/419_2.png) [@anthony](https://forum.canton.network/u/anthony)\
**Post date:** [August 4, 2020, 5:43pm UTC](https://forum.canton.network/t/command-not-found-daml/982/4 "2020-08-04T17:43:02Z")

</div>

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:

```haskell
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:

```haskell
echo "export PATH=$HOME/.daml/bin:$PATH" >> ~/.bash_profile
source ~/.bash_profile

```

Zsh:

```haskell
echo "export PATH=$HOME/.daml/bin:$PATH" >> ~/.zshrc
echo "fpath=(~/.daml/zsh $fpath)" >> ~/.zshrc
source ~/.zshrc

```

---

<div class="post-metadata">

**Author:** ![Nicholas\_Ho](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/nicholas_ho/32/709_2.png) [@Nicholas\_Ho](https://forum.canton.network/u/Nicholas_Ho)\
**Post date:** [August 4, 2020, 6:14pm UTC](https://forum.canton.network/t/command-not-found-daml/982/5 "2020-08-04T18:14:15Z")

</div>

Thanks! Unfortunately I am still getting a “command not found: daml” error after doing all of that.

---

<div class="post-metadata">

**Author:** ![Leonid\_Shlyapnikov](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/leonid_shlyapnikov/32/241_2.png) [@Leonid\_Shlyapnikov](https://forum.canton.network/u/Leonid_Shlyapnikov)\
**Post date:** [August 4, 2020, 8:10pm UTC](https://forum.canton.network/t/command-not-found-daml/982/6 "2020-08-04T20:10:16Z")

</div>

@Nicholas_Ho can you please run `ls -l ~/.daml/bin/daml` from your shell and tell us the output?

It should print the full path to the daml executable if the installation succeeded.

```haskell
$ ls -l ~/.daml/bin/daml
lrwxrwxrwx 1 leos leos 22 Jul 28 17:39 /home/leos/.daml/bin/daml -> ../sdk/1.3.0/daml/daml*

```

---

<div class="post-metadata">

**Author:** ![Leonid\_Shlyapnikov](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/leonid_shlyapnikov/32/241_2.png) [@Leonid\_Shlyapnikov](https://forum.canton.network/u/Leonid_Shlyapnikov)\
**Post date:** [August 4, 2020, 8:13pm UTC](https://forum.canton.network/t/command-not-found-daml/982/7 "2020-08-04T20:13:46Z")

</div>

If the executable is in place and you are still having issues with the `PATH`, keep in mind you can run `daml` command specifying the full path:

```haskell
$ ~/.daml/bin/daml --help
Usage: daml COMMAND

Available options:
  -h,--help Show this help text

Available commands:
  version Display DAML version information
  install Install the specified DAML SDK version
  uninstall Uninstall the specified DAML SDK version
...

```
