# Running OpenFHE example

**URL:** <https://openfhe.discourse.group/t/running-openfhe-example/209>\
**Category:** Library Questions\
**Created:** [November 6, 2022, 9:33am UTC](https://openfhe.discourse.group/t/running-openfhe-example/209 "2022-11-06T09:33:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![user04](https://avatars.discourse-cdn.com/v4/letter/u/91b2a8/32.png) [@user04](https://openfhe.discourse.group/u/user04)\
**Post date:** [November 6, 2022, 9:33am UTC](https://openfhe.discourse.group/t/running-openfhe-example/209/1 "2022-11-06T09:33:56Z")

</div>

Hi guys! I recently build the OpenFHE. While running the example I got the error in the line

#include openfhe.h

Error : cannot open source file “openfhe.h”

Any guidance would be really appreciated.

Thanks

---

<div class="post-metadata">

**Author:** ![iquah](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/iquah/32/8_2.png) [@iquah](https://openfhe.discourse.group/u/iquah)\
**Post date:** [November 6, 2022, 1:22pm UTC](https://openfhe.discourse.group/t/running-openfhe-example/209/2 "2022-11-06T13:22:18Z")

</div>

Hi there! We’re going to need more details e.g what OS what compiler etc.

Did you follow all the install instructions? When you install and specify to build examples what do you get?can you install and run those examples?

---

<div class="post-metadata">

**Author:** ![lance](https://avatars.discourse-cdn.com/v4/letter/l/7ab992/32.png) [@lance](https://openfhe.discourse.group/u/lance)\
**Post date:** [November 7, 2022, 8:24am UTC](https://openfhe.discourse.group/t/running-openfhe-example/209/3 "2022-11-07T08:24:13Z")

</div>

Hi, maybe this will help you.

> [@How to use the head file in my CPP project under WSL?](https://openfhe.discourse.group/t/how-to-use-the-head-file-in-my-cpp-project-under-wsl/191/2):
>
> By default, the library gets installed in /usr/local and openfhe.h will be in /usr/local/include/openfhe/pke/. So, please check if it is there. If it is not, then rerun “make install”. Most likely you would need the admin rights to install OpenFHE. For your own example: make a new directory where you keep your own “lance\_project.cpp” file. copy CMakeLists.User.txt from openfhe-development/ to the new directory and rename it to CMakeLists.txt Open CMakeLists.txt for editing and add a new line …
