|
|
# Geant4 Installation on Windows 11 WSL2
|
|
|
# running AlmaLinux 9
|
|
|
|
|
|
[[_TOC_]]
|
|
|
# Geant4 Installation on Windows 11 WSL2 running AlmaLinux 9
|
|
|
|
|
|
Hire we do not give the instructions for native Geant4 installation with the Visual Studio C++ compiler on Windows.
|
|
|
|
|
|
For this tutorial we install Geant4 in Windows Subsystem for Linux (WSL) machine.
|
|
|
We expalin how install Geant4 in Windows Subsystem for Linux (WSL) machine.
|
|
|
|
|
|
[[_TOC_]]
|
|
|
|
|
|
## Installing WSL in Windows 11
|
|
|
|
... | ... | @@ -13,6 +12,8 @@ WSL2 uses virtualization technology to run a Linux kernel inside of a lightweigh |
|
|
|
|
|
We have chosen to install AlmaLinux 9 for our purpose.
|
|
|
|
|
|
The WSL intallation instruction can be found on [AlamLinux Wiki](https://wiki.almalinux.org/documentation/wsl.html)
|
|
|
|
|
|
1. Visit https://docs.microsoft.com/en-us/windows/wsl/install-win10
|
|
|
for detailed instructions how to enable WSL or WSL 2.
|
|
|
|
... | ... | @@ -96,14 +97,16 @@ To test you installation you can follow the procedure described in [Install Gean |
|
|
## Tips ##
|
|
|
|
|
|
- WLS 2
|
|
|
- If you already running WSL do not forget updaet you Windows installation and update wsl via: `wsl --update`.
|
|
|
|
|
|
- Use the command
|
|
|
export DISPLAY=`ip route | awk '/default/ {print $3; exit}'`:0.0
|
|
|
to setup display. If you use **MobaXTerm** or other external X11 server
|
|
|
|
|
|
- All environment variables related to language
|
|
|
(LANGUAGE, LANG, LC_* ) are set to C.UTF-8 in ubuntu wls.
|
|
|
(LANGUAGE, LANG, LC_* ) are set to C.UTF-8 on wsl machine.
|
|
|
If you see the warnings when connect to another machine via ssh,
|
|
|
use f.e. : export LC_ALL=en_US.UTF-8 TODO
|
|
|
use f.e. : export LC_ALL=en_US.UTF-8
|
|
|
|
|
|
- Geant4
|
|
|
- You check the Geant4 datasets installation using the command:
|
... | ... | |