# Running "error" (nothing is displayed) with msys2 on Windows 11

**URL:** <https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987>\
**Category:** Library Questions\
**Created:** [December 21, 2023, 10:28pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987 "2023-12-21T22:28:31Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![HugoJazz](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HugoJazz](https://openfhe.discourse.group/u/HugoJazz)\
**Post date:** [December 21, 2023, 10:28pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/1 "2023-12-21T22:28:31Z")

</div>

Hi everyone,

I installed OpenFHE on Windows 11, with msys2, according to [this](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/windows.html)

I have followed every command, and every test with the “make testall” worked fine

I then created another repo, outside the openfhe-development repo, and build it like [this](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/building_user_applications.html)

But when I’m trying to run a simple test on my other repo in which I linked OpenFHE, it gives me no return, and no error message, just nothing happens.

 ![Capture d'écran 2023-12-21 232619](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/12c078da060819b22610378fc0a09a0e9d95f95a.png)  
On the right, my code  
On the left, the “./test.exe” with no response, no “Hello, world!”

I noticed that this happens everytime I write something using the OpenFHE library.  
But just including the library, and not using it works fine.

Does anyone know what the problem could be ?

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [December 22, 2023, 10:56pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/2 "2023-12-22T22:56:07Z")

</div>

@HugoJazz Hi, on Windows you should always add the location of your libraries to PATH. This is what to run in the command prompt: “export PATH=${PATH}:full\_library\_install\_location”.  
if you installed OpenFHE in /home/hugojazz/local, then you should replace full\_library\_install\_location with /home/hugojazz/local/lib.

---

<div class="post-metadata">

**Author:** ![HugoJazz](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@HugoJazz](https://openfhe.discourse.group/u/HugoJazz)\
**Post date:** [December 23, 2023, 5:11pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/3 "2023-12-23T17:11:54Z")

</div>

Hi !

It worked !! Thank you so much @dsuponitskiy-duality 🙂

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://openfhe.discourse.group/u/Jason)\
**Post date:** [April 24, 2024, 2:13pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/4 "2024-04-24T14:13:20Z")

</div>

Hello sir!. I face the same issue when I try to run an executable file. On Windows, how exactly do I have to run .exe file with the absolute location of libraries?

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/63aa41ad46018e486d94b53d8bab8a874c7e3bfc.png)

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [April 24, 2024, 3:08pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/5 "2024-04-24T15:08:36Z")

</div>

Those are not the correct directory names for the binaries. I would suggest installing the binaries somewhere in your home directory in MinGW, as it is easier to specify their location. Personally, I never use any location that starts with ‘C:/’.  
If you want to leave the libraries in “c:/Program FIles” then your path should start with:  
/c/“Program Files”/.

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://openfhe.discourse.group/u/Jason)\
**Post date:** [April 24, 2024, 3:45pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/6 "2024-04-24T15:45:50Z")

</div>

Thank you, sir. Let me try.

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://openfhe.discourse.group/u/Jason)\
**Post date:** [April 29, 2024, 12:05pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/7 "2024-04-29T12:05:48Z")

</div>

![image](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/ab1aa59be765a395c7fa0bc8e7e9f35959a7fe40.png)  
I tried to run my executable file with exactly the absolute path. However, there is no error or output.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/eaa0df808fb7bd1948c1a0a249b0fd882307ed79.png)

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [April 29, 2024, 11:55pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/8 "2024-04-29T23:55:19Z")

</div>

please read the instructions at [Installing OpenFHE on Windows — OpenFHE documentation](https://openfhe-development.readthedocs.io/en/latest/sphinx_rsts/intro/installation/windows.html#). there is an example how to set up PATH.

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://openfhe.discourse.group/u/Jason)\
**Post date:** [April 30, 2024, 4:05am UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/9 "2024-04-30T04:05:24Z")

</div>

Thank you, sir. I am posting this just for the record so others can get some hints in the future. If openfhe does not install inside MinGW (installed somewhere else), add the absolute path (.dll containing bin folder path) inside the msys64/etc/profile like this.  
//  
Alternatively, add the path(s) to `ORIGINAL_PATH` variable in `c:/msys64/etc/profile` to make this change permanent. (Follow this as mentioned in standard documentation)

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/cc5db769371e52a96569965a992750e63b965533.png)

---

<div class="post-metadata">

**Author:** ![Jason](https://avatars.discourse-cdn.com/v4/letter/j/dc4da7/32.png) [@Jason](https://openfhe.discourse.group/u/Jason)\
**Post date:** [April 30, 2024, 4:10am UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/10 "2024-04-30T04:10:45Z")

</div>

Some of my code ran examples. Thank you so much, sir! @dsuponitskiy-duality

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/openfhe/original/1X/fd137c9fb32c793f020139173c09468755ad41c7.png)

---

<div class="post-metadata">

**Author:** ![dsuponitskiy-duality](https://avatars.discourse-cdn.com/v4/letter/d/c68b51/32.png) [@dsuponitskiy-duality](https://openfhe.discourse.group/u/dsuponitskiy-duality)\
**Post date:** [April 30, 2024, 12:41pm UTC](https://openfhe.discourse.group/t/running-error-nothing-is-displayed-with-msys2-on-windows-11/987/11 "2024-04-30T12:41:47Z")

</div>

You must remember that MinGW is NOT Windows, but a Unix-like system.
