# 5ttgen error on MAC

**URL:** <https://community.mrtrix.org/t/5ttgen-error-on-mac/540>\
**Category:** Uncategorized\
**Created:** [October 26, 2016, 5:21pm UTC](https://community.mrtrix.org/t/5ttgen-error-on-mac/540 "2016-10-26T17:21:26Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![rsmith](https://community.mrtrix.org/user_avatar/community.mrtrix.org/rsmith/32/2672_2.png) [@rsmith](https://community.mrtrix.org/u/rsmith)\
**Post date:** [October 26, 2016, 10:42pm UTC](https://community.mrtrix.org/t/5ttgen-error-on-mac/540/2 "2016-10-26T22:42:31Z")

</div>

OK, this looks like the same symptom as was recently reported [here](https://community.mrtrix.org/t/estimating-response-function-dwi2response-error/530), so it’s probably _not_ manual moving of the script files…

@dchristiaens: Is the homebrew installation grabbing the script files and placing them in `/usr/local/bin/`? This won’t work for `5ttgen` and `dwi2response`, we’ll need to figure out a more appropriate way of installing / arranging / detecting these.

@kamal: A quick fix would be to grab the [`scripts/src/` directory](https://github.com/MRtrix3/mrtrix3/tree/master/scripts/src), and place a copy in your `/usr/local/bin/` directory (so the path that the error is complaining about - `/usr/local/bin/src/_5ttgen` - exists). That should allow `5ttgen` to find the files it’s expecting to see based on a _relative path_ from its own location.

Cheers  
Rob

---

_[View the full topic](https://community.mrtrix.org/t/5ttgen-error-on-mac/540)._
