# Installing official Salome Meca 2022 on Windows 10/11 using WSL2 (old approach)

**URL:** <https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675>\
**Category:** Salome-Meca installation\
**Created:** [August 8, 2023, 9:47am UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675 "2023-08-08T09:47:58Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [December 9, 2024, 12:47pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/21 "2024-12-09T12:47:02Z")

</div>

@lIlIl To answer my own question: you can use the `--fakeroot` Singularity option.

```sh
$ singularity run --fakeroot ~/sm22/salome_meca-lgpl-2022.1.0-1-20221225-scibian-9.sif shell
Converting SIF file to temporary sandbox...
Singularity> whoami
root
Singularity> groups
root
Singularity> id
uid=0(root) gid=0(root) groupes=0(root)

```

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [December 9, 2024, 1:43pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/22 "2024-12-09T13:43:11Z")

</div>

Could you explain briefly how `--fakeroot` works? Will I be able to change some python files inside the image and will the change be permanent?

---

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [December 9, 2024, 2:15pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/23 "2024-12-09T14:15:27Z")

</div>

It seems that all changes are temporary. It only simulates root privileges, it doesn’t actually modify the underlying file system. This is part of what makes Singularity safer than Docker images.

> **[Fakeroot feature — SingularityCE User Guide 4.6 documentation](https://docs.sylabs.io/guides/latest/user-guide/fakeroot.html)**

---

<div class="post-metadata">

**Author:** ![k\_zurawski](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/k/9fc29f/32.png) [@k\_zurawski](https://code-aster.org/forum/u/k_zurawski)\
**Post date:** [December 9, 2024, 2:37pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/24 "2024-12-09T14:37:14Z")

</div>

@lIlIl I was afraid of that because of the sandbox word in your post

---

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [January 7, 2025, 5:16pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/25 "2025-01-07T17:16:21Z")

</div>

Does anyone know where `mfront` is stored? I would like to call `mfront --obuild` but I can’t find it.

I used `find` in the root of the WSL distribution and it outputs:

```txt
./home/user/dev/codeaster/src/mfront
./home/user/dev/codeaster/src/build/mpi/release/mfront
./opt/public/20221225/gcc8-openblas-ompi2/.installed/mfront
./opt/public/20221225/gcc8-openblas-seq/.installed/mfront

```

But none of them are executable.

---

<div class="post-metadata">

**Author:** ![mf1](https://code-aster.org/forum/letter_avatar_proxy/v4/letter/m/f4b2a3/32.png) [@mf1](https://code-aster.org/forum/u/mf1)\
**Post date:** [January 7, 2025, 5:36pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/26 "2025-01-07T17:36:36Z")

</div>

@lIlIl

Hello,

within the container in the ‘/opt/salome\_meca/’ folder do a ‘find . -type f -executable | grep mfront’ which will give you all executable files with _mfront_ in the name.

In my case I get:

> ./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/bin/mfront-3.4.0

./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/bin/mfront-doc-3.4.0

./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/bin/mfront-query-3.4.0

./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/lib/python3.6/site-packages/mfront\_3\_4\_0/ **init**.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/lib/python3.6/site-packages/mfront\_3\_4\_0/mtest/ **init**.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/lib/python3.6/site-packages/mfront\_3\_4\_0/umatxx/Behaviour.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront-TFEL340/lib/python3.6/site-packages/mfront\_3\_4\_0/umatxx/ **init**.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/bin/mfront-3.4.3

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/bin/mfront-doc-3.4.3

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/bin/mfront-query-3.4.3

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/lib/python3.6/site-packages/mfront\_3\_4\_3/ **init**.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/lib/python3.6/site-packages/mfront\_3\_4\_3/mtest/ **init**.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/lib/python3.6/site-packages/mfront\_3\_4\_3/umatxx/Behaviour.py

./V2022.1.0\_scibian\_univ/prerequisites/Mfront\_testing-TFEL343/lib/python3.6/site-packages/mfront\_3\_4\_3/umatxx/ **init**.py

So, it should be one of these, I think.

Mario.

---

<div class="post-metadata">

**Author:** ![lIlIl](https://code-aster.org/forum/user_avatar/code-aster.org/lilil/32/10408_2.png) [@lIlIl](https://code-aster.org/forum/u/lIlIl)\
**Post date:** [February 5, 2025, 4:15pm UTC](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675/27 "2025-02-05T16:15:45Z")

</div>

@mf Thank you! I was able to locate mine. However, I run into errors…

```txt
Singularity> ./mfront-3.4.0
./mfront-3.4.0: error while loading shared libraries: libTFELMFront-3.4.0.so.3.4.0: cannot open shared object file: No such file or directory
Singularity> ./mfront-4.1.0
./mfront-4.1.0: error while loading shared libraries: libTFELMFront-4.1.0.so.4.1.0: cannot open shared object file: No such file or directory

```

I’m stumped.

[Previous page](https://code-aster.org/forum/t/installing-official-salome-meca-2022-on-windows-10-11-using-wsl2-old-approach/11675.md?page=1)
