# Postgresql support not appearing when I configure

**URL:** https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308
**Category:** Autopsy on Linux / macOS
**Created:** [November 19, 2020, 3:20pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308 "2020-11-19T15:20:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Rahul09](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@Rahul09](https://sleuthkit.discourse.group/u/Rahul09)
#### Post date: [November 19, 2020, 3:20pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308/1 "2020-11-19T15:20:58Z")

</div>

Hello, I am following the Autopsy on on mac os installation guide [https://slo-sleuth.github.io/tools/InstallingAutopsyOnMacOS.html#building-the-sleuthkit](https://slo-sleuth.github.io/tools/InstallingAutopsyOnMacOS.html#building-the-sleuthkit), specifically I am stuck on the ‘building the sleuthkit’ section. I run the export CPPFLAGS command and then ./configure however the postgresql doesn’t even appear in the building section:

![Screenshot 2020-11-19 at 15.15.54](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/2X/e/e12ee848f78f0ea75646c2686934f4838ada4654.png)

Any help appreciated thanks! 🙂

---

<div class="post-metadata">

### Author: ![downey](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@downey](https://sleuthkit.discourse.group/u/downey)
#### Post date: [November 19, 2020, 3:43pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308/2 "2020-11-19T15:43:30Z")

</div>

What does ‘echo $CPPFLAGS’ and ‘ls /usr/local/opt/libpq/include’ show?

---

<div class="post-metadata">

### Author: ![Rahul09](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@Rahul09](https://sleuthkit.discourse.group/u/Rahul09)
#### Post date: [November 19, 2020, 5:00pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308/3 "2020-11-19T17:00:38Z")

</div>

when i type ls echo $CPPFLAGS i just get a blank line. postgresql appears to be in the include file.

 ![Screenshot 2020-11-19 at 16.58.57](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/2X/0/00783756062c03f58752be9c8b90119dca886d98.jpeg)

---

<div class="post-metadata">

### Author: ![downey](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@downey](https://sleuthkit.discourse.group/u/downey)
#### Post date: [November 19, 2020, 6:16pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308/4 "2020-11-19T18:16:14Z")

</div>

> [@Rahul09](#):
>
> when i type ls echo $CPPFLAGS i just get a blank line

That suggests that either the ‘export’ command wasn’t right or you have opened a different shell since running that command. The ‘export’ command just sets temporary environment variables in the current shell.  
Try the following and let me know what you get.

export CPPFLAGS=“-I/usr/local/opt/libpq/include”  
echo $CPPFLAGS

---

<div class="post-metadata">

### Author: ![Rahul09](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@Rahul09](https://sleuthkit.discourse.group/u/Rahul09)
#### Post date: [November 19, 2020, 6:48pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308/5 "2020-11-19T18:48:34Z")

</div>

Ahh ok, I tried typing those commands and got this result:

 ![Screenshot 2020-11-19 at 18.30.30](https://global.discourse-cdn.com/free1/uploads/sleuthkit/original/2X/9/9a3d17014f0e1e3a5a213fdad1bca2ab56c2a75d.png)

I ran the configure again after that the postgresql still does not appear also the java/JNI support has changed to no. Feel like im doing something very obviously wrongly, sorry im not that experienced with terminal 😔

---

<div class="post-metadata">

### Author: ![downey](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@downey](https://sleuthkit.discourse.group/u/downey)
#### Post date: [November 19, 2020, 7:21pm UTC](https://sleuthkit.discourse.group/t/postgresql-support-not-appearing-when-i-configure/2308/6 "2020-11-19T19:21:48Z")

</div>

Ok, I _think_ the issue is that the instructions are out of date and that in recent versions you should no longer need the PostgreSQL related steps because the code that interacted with the PostgreSQL database was moved from TSK to Autopsy.

As for the JNI issue, you probably need to repeat the steps that set the JAVA\_HOME environment variable.
