# Suricata - Installation Issues

**URL:** <https://forum.suricata.io/t/suricata-installation-issues/2837>\
**Category:** Outreachy\
**Created:** [October 11, 2022, 1:09am UTC](https://forum.suricata.io/t/suricata-installation-issues/2837 "2022-10-11T01:09:58Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haleema\_Khan](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/haleema_khan/32/1655_2.png) [@Haleema\_Khan](https://forum.suricata.io/u/Haleema_Khan)\
**Post date:** [October 11, 2022, 1:09am UTC](https://forum.suricata.io/t/suricata-installation-issues/2837/1 "2022-10-11T01:09:58Z")

</div>

When I try to run the `"CFLAGS="-O0 -ggdb -fno-omit-frame-pointer" ./configure --disable-shared --enable-debug --enable-unittests" ` command I get the error “pcre2 not found” although it is installed.  
DIgging deeper I have found that it is installed but the path is not getting recognized. Instead of getting installed in the bin folder, it is getting installed to the opt/homebrew/Cellar in Mac and the path is not reflecting for this.  
Any insights here would be helpful. Thanks

---

<div class="post-metadata">

**Author:** ![vjulien](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/vjulien/32/4_2.png) [@vjulien](https://forum.suricata.io/u/vjulien)\
**Post date:** [October 11, 2022, 12:24pm UTC](https://forum.suricata.io/t/suricata-installation-issues/2837/2 "2022-10-11T12:24:13Z")

</div>

Looks like some options weren’t added when we moved from pcre1 to pcre2. I’ve opened a ticket:

> **[Bug #5572: pcre2: allow different include/lib paths - Suricata - Open...](https://redmine.openinfosecfoundation.org/issues/5572)**
>
> Redmine

---

<div class="post-metadata">

**Author:** ![Haleema\_Khan](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/haleema_khan/32/1655_2.png) [@Haleema\_Khan](https://forum.suricata.io/u/Haleema_Khan)\
**Post date:** [October 12, 2022, 12:26am UTC](https://forum.suricata.io/t/suricata-installation-issues/2837/3 "2022-10-12T00:26:52Z")

</div>

> [@vjulien](#):
>
> [Bug #5572: pcre2: allow different include/lib paths - Suricata - Open Information Security Foundation](https://redmine.openinfosecfoundation.org/issues/5572)

So I got it working(I think) with a weird workaround. I uninstalled it using homebrew and then downloaded the tar from the library website and then followed the instructions to install it in the readme.  
After this, I did not get the same error and could go through the remaining installation process.

My question here is: Is it ok if I am building on Mac, and would I be able to contribute easily or is it going to be an issue. Dont want to go through the installation process again. 🫣

---

<div class="post-metadata">

**Author:** ![Haleema\_Khan](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/haleema_khan/32/1655_2.png) [@Haleema\_Khan](https://forum.suricata.io/u/Haleema_Khan)\
**Post date:** [October 12, 2022, 3:49am UTC](https://forum.suricata.io/t/suricata-installation-issues/2837/4 "2022-10-12T03:49:52Z")

</div>

**[Mac users]** For anyone here who comes looking for answers I am documenting the steps for installation below along with some references that I found along the way.

**Mac Installations Steps**

- Read [Getting Started Contributing to Suricata - Suricata](https://suricata.io/2021/09/10/getting-started-contributing-to-suricata/)

- Follow [Installation Guide](https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Ubuntu_Installation_from_GIT)

- I translated the steps to Mac by downloading the packages mentioned one by one.

- You can try running via homebrew as well but I later had issues with the brew installation due to installation directory issues.

- To directly download the package:

- Clone the suricata repository into a new directory and follow remaining steps after that on installation page.

- Instead of` ./configure` run `"CFLAGS="-O0 -ggdb -fno-omit-frame-pointer" ./configure --disable-shared --enable-debug --enable-unittests`

Feel free to reach out if you have any questions (I am still learning though).

Other references : [Another thread on issues/installation discussions](https://forum.suricata.io/t/outreachy-contributions-discussions/1821)

---

<div class="post-metadata">

**Author:** ![Robert\_m](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/robert_m/32/1634_2.png) [@Robert\_m](https://forum.suricata.io/u/Robert_m)\
**Post date:** [October 12, 2022, 4:01am UTC](https://forum.suricata.io/t/suricata-installation-issues/2837/5 "2022-10-12T04:01:33Z")

</div>

> [@Haleema\_Khan](#):
>
> You can try running via homebrew as well but I later had issues with the brew installation due to installation directory issues.

Nice! Thank you for thread. Unfortunately am running windows, I didnt run to such an issue.

---

<div class="post-metadata">

**Author:** ![jufajardini](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.suricata.io/jufajardini/32/896_2.png) [@jufajardini](https://forum.suricata.io/u/jufajardini)\
**Post date:** [October 12, 2022, 11:41am UTC](https://forum.suricata.io/t/suricata-installation-issues/2837/6 "2022-10-12T11:41:53Z")

</div>

Glad that know that you’ve found a way!

To answer your question: we have some community members who use Mac. Even one of our past interns did. So, you certainly can code and and contribute using a Mac. Now and then you may find bumps on the road, but there are some folks who may offer hints. (and we all face bumps, eventually! 😛 )
