# Installation Error

**URL:** <https://openfhe.discourse.group/t/installation-error/817>\
**Category:** Library Questions\
**Created:** [September 21, 2023, 1:02am UTC](https://openfhe.discourse.group/t/installation-error/817 "2023-09-21T01:02:16Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rkazmi](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@rkazmi](https://openfhe.discourse.group/u/rkazmi)\
**Post date:** [September 21, 2023, 1:02am UTC](https://openfhe.discourse.group/t/installation-error/817/1 "2023-09-21T01:02:16Z")

</div>

Hi,

While installing on MacOS (Big Sur version 11.7) I had no errors until I reached the step when I had to run cmake … , after I got the following error (see attachment for more details)

CMake Error: The source directory “/Users/rkazmi” does not appear to contain CMakeLists.txt.

Any suggestions?

Regards,

Raza.

 ![Screen Shot 2023-09-20 at 8.49.46 PM](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/17de1120ec6a51ac2a58aaf53b335780e95dc52d.png)

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [September 21, 2023, 3:03am UTC](https://openfhe.discourse.group/t/installation-error/817/2 "2023-09-21T03:03:34Z")

</div>

Hi @rkazmi ,

It looks like you are trying to run cmake in your user folder, not the build directory in the local copy of the repo. According to the [MacOS instructions](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/macos.html), you should clone the repo, then inside it create a directory `build`, change to the `build` directory, and then run `cmake ..`

---

<div class="post-metadata">

**Author:** ![rkazmi](https://avatars.discourse-cdn.com/v4/letter/r/958977/32.png) [@rkazmi](https://openfhe.discourse.group/u/rkazmi)\
**Post date:** [September 22, 2023, 9:20pm UTC](https://openfhe.discourse.group/t/installation-error/817/3 "2023-09-22T21:20:09Z")

</div>

Hi,  
Thanks so much. I was able to download it successfully. I am trying to compile some of the examples provided in the src folder. However, I am getting the following error:

MacBook-Air:examples rkazmi$ g++ -o ./linearwsum-evaluation ./linearwsum-evaluation.cpp

**./linearwsum-evaluation.cpp:38:10:**  **fatal error:**  **‘openfhe.h’ file not found**

I can run the executables you have provided, but I am unable to compile by myself.

Regards,

Raza.

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [September 22, 2023, 9:29pm UTC](https://openfhe.discourse.group/t/installation-error/817/4 "2023-09-22T21:29:47Z")

</div>

Please follow the instructions at [Installation — OpenFHE documentation](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/installation.html#testing-and-cleaning-the-build), i.e., run the examples from the `build` folder
