|
|
# Installing dependencies on Windows #
|
|
|
|
|
|
LMGC90 was initially designed for a Unix system. To be able to build it on windows a Unix like environment is needed. Two options either WSL or Anaconda.
|
|
|
LMGC90 was initially designed for a Unix system. To be able to build it on windows a Unix like environment is needed. Two options either WSL or Anaconda. WSL is the recommended way to do it, Anaconda being the last resort and may not be maintained in the future.
|
|
|
|
|
|
## By setting up Windows Subsystem Linux (recommended) ##
|
|
|
|
|
|
The first thing is to install a Unix environment in Windows by following these instructions:
|
|
|
* https://docs.microsoft.com/en-us/windows/wsl/install-win10
|
|
|
* https://docs.microsoft.com/en-us/windows/wsl/install
|
|
|
|
|
|
After installation be careful to do (assuming you install Ubuntu):
|
|
|
After installation be careful to do (assuming you installed Ubuntu):
|
|
|
```shell
|
|
|
apt update
|
|
|
apt full-upgrade
|
|
|
```
|
|
|
|
|
|
Then you can, optionally install a graphical server for you subsystem using either:
|
|
|
Then there is a need to access a graphical server for you subsystem. On the most recent ones,
|
|
|
these instructions can be followed : https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps .
|
|
|
For the older one, you must try to install either:
|
|
|
* [VcXsrv](https://sourceforge.net/projects/vcxsrv/) (for free)
|
|
|
Here you'll need to add to the ~/.bashrc file
|
|
|
```
|
... | ... | @@ -32,7 +34,7 @@ Then you can, optionally install a graphical server for you subsystem using eith |
|
|
```
|
|
|
|
|
|
|
|
|
Then in an ubuntu 20.04 terminal run the following commands (or follow the Linux prerequisites) :
|
|
|
Then in an ubuntu 22.04 terminal run the following commands (or follow the Linux prerequisites) :
|
|
|
|
|
|
```shell
|
|
|
sudo apt install cmake gcc g++ gfortran liblapack-dev swig python3-dev python3-numpy
|
... | ... | @@ -84,12 +86,10 @@ conda install -c conda-forge vtk |
|
|
|
|
|
You will be able, from now on, to activate this environment either from a conda console or within the anaconda navigator by selecting it in the list button next to *Applications on* field.
|
|
|
|
|
|
Furthermore it is advised to run the following command too:
|
|
|
Finally you need to make anaconda environment available to your powershell by running:
|
|
|
```cmd
|
|
|
conda init powershell
|
|
|
```
|
|
|
To be able to use `conda` command from Windows Powershell instead of only using Anaconda Prompts.
|
|
|
|
|
|
|
|
|
****
|
|
|
|
... | ... | |