Dynamic code not works with openfoam 2206 on wsl2 ubuntu 22.04.1
Summary
I'm using WSL2 for running ubuntu 22.04.1 on my win 10 desktop. After the installation of openfoam2206, i've done some test and all the tutorials with Dynamic code did not work.
Steps to reproduce
Example case
By example with the tutorial "multiphase/overInterDyMFoam/twoSimpleRotors".
What is the current bug behaviour?
When i run the tutorial, i had the following error :
Using dynamicCode for functionObject alphaVol at line 92 in "/mnt/d/twoSimpleRotors/system/controlDict.functions.alphaVol" Could not load "/mnt/d/tCould not load "/mnt/d/twoSimpleRotorCould not load "/mnt/d/twoSimpleRotors/dynwoSimpleRotors/dynamicCode/plaamicCode/platforms/linux64GccDPInt32Opt/lib/libalphaVolumes/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libatforms/linux64GccDPInt32Opt/lib/libalphaVolume_4a024lphaVolume_4a02447a6_4a02447a6 0286e990b3a446b74d59547a60286e990b3a446b74d595c431 3b0286e990b3a446b74d595c4313b159c.so" /mnt/d/twoSimpleRotors/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libalphaVolume_4a02447a60286e990b3a446b74d595c4313 b159c.so: cannot open shared object file: No such file or directory 159c.so" /mnt/d/twoSimpleRotors/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libalphaVolume_4a02447a60286e990b3a446b74d595c4313 b159c.so: cannot open shared object file: No such file or directory c4313b159c.so" /mnt/d/twoSimpleRotors/dynamicCode/platforms/linux64GccDPInt32Opt/lib/libalphaVolume_4a02447a60286e990b3a446b74d595c4313 b159c.so: cannot open shared object file: No such file or directory Creating new library in "dynamicCode/alphaVolume/platforms/linux64GccDPInt32Opt/lib/libalphaVolume_4a02447a60286e990b3a446b74d595c4313 b159c.so" Invoking wmake libso /mnt/d/twoSimpleRotors/dynamicCode/alphaVolume wmake libso /mnt/d/twoSimpleRotors/dynamicCode/alphaVolume [HC-2568-1:09302] 2 more processes have sent help message help-btl-vader.txt / cma-permission-denied [HC-2568-1:09302] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages ln: ./lnInclude dep: functionObjectTemplate.C Ctoo: functionObjectTemplate.C link: /mnt/d/twoSimpleRotors/dynamicCode/alphaVolume/../platforms/linux64GccDPInt32Opt/lib/libalphaVolume_4a02447a60286e990b3a446b74d595c4313 b159c.so
What is the expected correct behavior?
Relevant logs and/or images
Environment information
- OpenFOAM version :
- Operating system :
- Hardware info :
- Compiler :
Possible fixes
Hello!
For some reasons, the "make" has not been done successfully. Did i miss something during the installation?
Just one thing : when i followed the instalaltion steps for ubuntu on openfoam.com, the command "curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash" dit not work well ( i've installed the certificate with these commands :
sudo apt-get install ca-certificates sudo apt-get update ) and i have always the error E: could not locate package after the command :
sudo apt-get install openfoam2206-default
To get over the signing, i've forced the update :
sudo apt-get --allow-unauthenticated update
the installation was then done. It might be the source of my problem. Could you please confirm that the dynamic code work with wsl2 ubuntu?
Many thanks!!!