# Installation issue: grep recursive search

**URL:** <https://community.mrtrix.org/t/installation-issue-grep-recursive-search/6419>\
**Category:** Uncategorized\
**Tags:** macos, installation\
**Created:** [February 17, 2023, 8:00pm UTC](https://community.mrtrix.org/t/installation-issue-grep-recursive-search/6419 "2023-02-17T20:00:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryceg](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@bryceg](https://community.mrtrix.org/u/bryceg)\
**Post date:** [February 17, 2023, 8:00pm UTC](https://community.mrtrix.org/t/installation-issue-grep-recursive-search/6419/1 "2023-02-17T20:00:29Z")

</div>

Hi all,

I’m helping a new student install Mrtrix on their system, and we’re running into an issue during installation. We are following the application package installer process, and running into an issue early in installation. See below for an image of the output we’re seeing:

 ![mrtrix_err](https://community.mrtrix.org/uploads/default/original/2X/d/dd5e296b717dfb75ecc614a9b55c565db54a893a.jpeg)

The process then hangs on this grep stage indefinitely.

So far, we’ve updated our python installation which had no effect. Is this a permissions issue, or something to do with the computer’s file system? I’m not clear on what type of process is happening during the ‘Fixing python shebang’ step, so it’s hard to troubleshoot why grep is hanging. I am happy to provide any additional information for clarification as needed.

Thank you for your time!

---

<div class="post-metadata">

**Author:** ![bjeurissen](https://community.mrtrix.org/user_avatar/community.mrtrix.org/bjeurissen/32/28_2.png) [@bjeurissen](https://community.mrtrix.org/u/bjeurissen)\
**Post date:** [February 18, 2023, 12:06am UTC](https://community.mrtrix.org/t/installation-issue-grep-recursive-search/6419/2 "2023-02-18T00:06:14Z")

</div>

I have not encountered this problem before. What version of macOS are you running?

The issue is unrelated to your python version but happens during the installation script (which is a bash script) at this line:

> <https://github.com/MRtrix3/macos-installer/blob/01e510ea8a4b3773d3dd784d504fd92d25892da3/install#L89>

---

<div class="post-metadata">

**Author:** ![bjeurissen](https://community.mrtrix.org/user_avatar/community.mrtrix.org/bjeurissen/32/28_2.png) [@bjeurissen](https://community.mrtrix.org/u/bjeurissen)\
**Post date:** [February 18, 2023, 12:11am UTC](https://community.mrtrix.org/t/installation-issue-grep-recursive-search/6419/3 "2023-02-18T00:11:32Z")

</div>

The installation script indeed used a grep syntax not supported in older macos installations. I have just pushed a fix, please rerun the installation.

---

<div class="post-metadata">

**Author:** ![bryceg](https://community.mrtrix.org/letter_avatar_proxy/v4/letter/b/e9bcb4/32.png) [@bryceg](https://community.mrtrix.org/u/bryceg)\
**Post date:** [March 6, 2023, 5:50pm UTC](https://community.mrtrix.org/t/installation-issue-grep-recursive-search/6419/4 "2023-03-06T17:50:30Z")

</div>

Thank you very much for looking into this! Our student re-ran the installation and encountered no further issues.
