# No package 'davix' found

**URL:** <https://root-forum.cern.ch/t/no-package-davix-found/32441>\
**Category:** Newbie\
**Tags:** build\
**Created:** [January 25, 2019, 10:06am UTC](https://root-forum.cern.ch/t/no-package-davix-found/32441 "2019-01-25T10:06:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [January 25, 2019, 10:06am UTC](https://root-forum.cern.ch/t/no-package-davix-found/32441/1 "2019-01-25T10:06:01Z")

</div>

I compiled davix 0.7.1 and installed it into /opt/davix

When I use cmake to install ROOT 6.16, I systematically get this message

> No package ‘davix’ found

I tried to add /opt/davix/lib64 in my .bashrc (LD\_LIBRARY\_PATH variable) but it does not help.

So I guess that ROOT looks for davix.pc, that is located in /opt/davix/lib64/pkgconfig, but I have no idea how to tell to cmake that this file is located there.

---

<div class="post-metadata">

**Author:** ![oshadura](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/oshadura/32/14460_2.png) [@oshadura](https://root-forum.cern.ch/u/oshadura)\
**Post date:** [January 25, 2019, 11:26am UTC](https://root-forum.cern.ch/t/no-package-davix-found/32441/2 "2019-01-25T11:26:47Z")

</div>

@pamputt,

Just try to add custom path to davix .pc file into PKG\_CONFIG\_PATH

```auto
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/davix/lib64/pkgconfig

```

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [January 25, 2019, 1:09pm UTC](https://root-forum.cern.ch/t/no-package-davix-found/32441/3 "2019-01-25T13:09:44Z")

</div>

Thank you, it works. I was not aware of such environment variable.

---

<div class="post-metadata">

**Author:** ![amadio](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/amadio/32/12562_2.png) [@amadio](https://root-forum.cern.ch/u/amadio)\
**Post date:** [January 28, 2019, 7:22am UTC](https://root-forum.cern.ch/t/no-package-davix-found/32441/4 "2019-01-28T07:22:32Z")

</div>

Davix is a bit annoying in that it only exports its version (which we need to check) in the .pc file. Due to that we look for it with pkg-config (via its CMake module) instead of parsing the header and using `find_library()`. Please try also with `-DCMAKE_PREFIX_PATH=/opt/davix` and let me know if that works. This is the standard way of giving extra search paths to CMake.

---

<div class="post-metadata">

**Author:** ![pamputt](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/pamputt/32/12526_2.png) [@pamputt](https://root-forum.cern.ch/u/pamputt)\
**Post date:** [February 3, 2019, 3:41pm UTC](https://root-forum.cern.ch/t/no-package-davix-found/32441/5 "2019-02-03T15:41:56Z")

</div>

Indeed, using `-DCMAKE_PREFIX_PATH=/opt/davix` works as well.
