I think either I'm doing something wrong - or there's something going on with the WSL in Windows 11. I'm tempted to take the laptop and install a vanilla Windows 10 on it just to see if that makes a difference.
I created a second WSL instance with Ubuntu 22.04. Ran all the updates. Installed insightcae-ce after manually editing sources (removing entry under /etc/apt/sources.list.d and adding:
to /apt/etc/sources.list
After sudo apt update, insightcae installed with no errors.
Manually created insight_update.sh and insight_version.sh files in /usr/bin (copied from the original insightcae-ubuntu-18.04 instance)
Added source /opt/insightcae/bin/insight_setenv.sh to /home/user/.bashrc
^^ I should mention I created a user called "user" which has full sudo access without asking for password (sudo visudo) as in the original WSL instance
So now everything looked ok (or at least as it does in the original instance), so fingers crossed:
Same thing though - after creating the mesh(es), OpenFOAM crashes out with the same error as it does for me in the 18.04 installation:
[From_log] ****************************************************************
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
[E] Could not load module library "libtestcases.so"!
[E] Reason: /opt/insightcae/lib/libtestcases.so: undefined symbol: _ZN20vtkDebugLeaksManagerD1Ev
[E] Could not load module library "libgenericmodules.so"!
[E] Reason: /opt/insightcae/lib/libtoolkit_remote.so: undefined symbol: _ZN31vtkObjectFactoryRegistryCleanupD1Ev
Create mesh for time = 1000
[/From_log] ****************************************************************
Thinking it could be environment related (long shot), I did find a small issue in insight_setenv.sh:
This line:
>> export PATH=$PATH${ORG_PATH}
results in the PATH ENV variable being doubled. With added \cr\lf, it looked like this:
[ENV PATH] **********************************************************
PATH=/opt/insightcae/bin:
/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/usr/games:
/usr/local/games:
/usr/lib/wsl/lib:
/mnt/c/Program Files/Microsoft MPI/Bin/:
/mnt/c/WINDOWS/system32:
/mnt/c/WINDOWS:
/mnt/c/WINDOWS/System32/Wbem:
/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:
/mnt/c/WINDOWS/System32/OpenSSH/:
/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:
/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:
/mnt/c/Program Files/PowerShell/7/:
/mnt/c/Program Files/PuTTY/:
/mnt/c/Program Files/MiKTeX/miktex/bin/x64/:
/mnt/c/Users/stha/AppData/Local/Microsoft/WindowsApps:
/snap/bin:
/opt/insightcae/bin:
/usr/local/sbin:
/usr/local/bin:
/usr/sbin:
/usr/bin:
/sbin:
/bin:
/usr/games:
/usr/local/games:
/usr/lib/wsl/lib:
/mnt/c/Program Files/Microsoft MPI/Bin/:
/mnt/c/WINDOWS/system32:
/mnt/c/WINDOWS:
/mnt/c/WINDOWS/System32/Wbem:
/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:
/mnt/c/WINDOWS/System32/OpenSSH/:
/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:
/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:
/mnt/c/Program Files/PowerShell/7/:
/mnt/c/Program Files/PuTTY/:
/mnt/c/Program Files/MiKTeX/miktex/bin/x64/:
/mnt/c/Users/stha/AppData/Local/Microsoft/WindowsApps:
/snap/bin
[/ENV PATH] **********************************************************
After changing the line in insight_setenv.sh to read only
>> export PATH=$PATH$
You only get the first half. Shouldn't have anything to say really, but it does make things more readable.
Anyway - no further details your honor. Still stuck : (
BR - and thank you,
/Steffen