# Cmake error while installing OpenFHE

**URL:** <https://openfhe.discourse.group/t/cmake-error-while-installing-openfhe/1039>\
**Category:** Library Questions\
**Created:** [January 26, 2024, 2:45am UTC](https://openfhe.discourse.group/t/cmake-error-while-installing-openfhe/1039 "2024-01-26T02:45:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphaelgaa](https://avatars.discourse-cdn.com/v4/letter/r/bbce88/32.png) [@raphaelgaa](https://openfhe.discourse.group/u/raphaelgaa)\
**Post date:** [January 26, 2024, 2:45am UTC](https://openfhe.discourse.group/t/cmake-error-while-installing-openfhe/1039/1 "2024-01-26T02:45:50Z")

</div>

Hello.  
I’m having difficulty on executing “cmake …” of the manual number 3.  
[https://openfhe-development.readthedocs.io/en/latest/sphinx\_rsts/intro/installation/linux.html](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/linux.html)

I entered the command “sudo cmake …”  
then the result was like…

– The C compiler identification is GNU 11.4.0  
– The CXX compiler identification is GNU 11.4.0  
– Detecting C compiler ABI info  
– Detecting C compiler ABI info - done  
– Check for working C compiler: /usr/bin/cc - skipped  
– Detecting C compile features  
– Detecting C compile features - done  
– Detecting CXX compiler ABI info  
– Detecting CXX compiler ABI info - done  
– Check for working CXX compiler: /usr/bin/c++ - skipped  
– Detecting CXX compile features  
– Detecting CXX compile features - done  
– Building in Release mode  
– BUILD\_UNITTESTS: ON  
– BUILD\_EXAMPLES: ON  
– BUILD\_BENCHMARKS: ON  
– BUILD\_EXTRAS: OFF  
– BUILD\_STATIC: OFF  
– BUILD\_SHARED: ON  
– GIT\_SUBMOD\_AUTO: ON  
– WITH\_BE2: ON  
– WITH\_BE4: ON  
– WITH\_NTL: OFF  
– WITH\_TCM: OFF  
– WITH\_INTEL\_HEXL: OFF  
– SPKIM\_OMP: OFF  
– NAIVE\_MT: OFF  
– WITH\_OPENMP: ON  
– NATIVE\_SIZE: 64  
– CKKS\_M\_FACTOR: 1  
– WITH\_NATIVEOPT: OFF  
– WITH\_COVTEST: OFF  
– USE\_MACPORTS: OFF  
– BUILTIN\_INFO\_AVAILABLE is defined  
\*\*\*\*\* INSTALL IS AT /usr/local; to change, run cmake with -DCMAKE\_INSTALL\_PREFIX=/your/path  
– Architecture is x86\_64  
– NATIVEINT is set to 64  
– MATHBACKEND is set to 4  
– Found Git: /usr/bin/git (found version “2.34.1”)  
CMake Error at CMakeLists.txt:709 (add\_subdirectory):  
The source directory

```
/home/openfhe-fork-omp_threading/third-party/google-benchmark

```

does not contain a CMakeLists.txt file.  
– Configuring incomplete, errors occurred!  
See also “/home/openfhe-fork-omp\_threading/build/CMakeFiles/CMakeOutput.log”.

How can I solve this problem? Help me 🙂

---

<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:** [January 26, 2024, 9:02pm UTC](https://openfhe.discourse.group/t/cmake-error-while-installing-openfhe/1039/2 "2024-01-26T21:02:40Z")

</div>

> I entered the command “sudo cmake …”

Don’t use `sudo`; the step 3 does not say to use `sudo`

---

<div class="post-metadata">

**Author:** ![narger](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/narger/32/420_2.png) [@narger](https://openfhe.discourse.group/u/narger)\
**Post date:** [February 3, 2024, 9:49am UTC](https://openfhe.discourse.group/t/cmake-error-while-installing-openfhe/1039/3 "2024-02-03T09:49:20Z")

</div>

I think it is missing the external `google-benchmark` library.

I suggest you to clone the repository using the usual `git clone` command, and not by downloading the `.zip` file (I got that error too 🙂 )
