# Install Discourse for development using Docker

**URL:** <https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009>\
**Category:** Developer Guides\
**Tags:** docker, dev-install, how-to\
**Created:** [November 16, 2018, 9:40am UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009 "2018-11-16T09:40:04Z")\
**Posts on this page:** 1\
**Showing post:** 124

<div class="post-metadata">

**Author:** ![aleber](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/aleber/32/151754_2.png) [@aleber](https://meta.discourse.org/u/aleber)\
**Post date:** [October 14, 2020, 8:18am UTC](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009/124 "2020-10-14T08:18:10Z")

</div>

I’m on a Mac with `zsh` (on iTerm2) and if I try to use symbolic link for plugins development I get stuck with this errors:

```plaintext
readlink: illegal option -- f
usage: readlink [-n] [file ...]

```

This because the Mac implementation of the `readlink` command is slightly different from the GNU one.

The easiest way to solve this is by doing this:

```plaintext
# brew install coreutils
# ln -s "$(which greadlink)" "$(dirname "$(which greadlink)")/readlink"

```

This will give you the possibility to use a compatible readlink version.

Please remember you need to have `dirname "$(which greadlink)"` value on your `PATH` in a position preceding the `/usr/bin` (where usually the original `readlink` is). On my case `PATH` is something like `/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:...` and the symbolik link to greadlink is in `/usr/local/bin`.

Reference: [Fixing "readlink: illegal option -- f" error on a Mac](http://biercoff.com/fixing-readlink-illegal-option-f-error-on-a-mac/)

---

_[View the full topic](https://meta.discourse.org/t/install-discourse-for-development-using-docker/102009)._
