Installation guide for THERIAK-DOMINO on UNIX
Installation steps
These steps show how THERIAK-DOMINO can be installed on UNIX-based systems (e.g. Ubuntu), including a Windows Subsystem for Linux (WSL).
- Install Linux essential commands and gfortran compiler:
sudo apt update && sudo apt install -y build-essential
sudo apt-get install gfortran- Clone the THERIAK-DOMINO from GitHub into your directory of choice (here
tdin the root directory):
git clone https://github.com/Theriak-Domino/theriak-domino.git td- Switch to newly created
tddirectory:
cd td/src- Open and edit makefile
nano MakefileLIN- Uncomment the gfortran compiler line and comment out the others in the head of that file so that it reads as ….
COMPILER=gortran
# COMPILER=ifort
# COMPILER=ifx
Save and close file by CTRL+S CTRL+X
- Now install
make -fMakefileLIN all- Copy installed files into “
dist/Programs/” directory:
cp -a ~/td/build/. ~/td/dist/Programs/
cp -a ~/td/src/. ~/td/dist/Programs/- Edit paths in
linux_bashr_additionfile…
cd ../dist/Working/
nano linux_bashr_addition…so that it reads as
PS1="`whoami` \#> "
alias ther="cd ~/td/dist/Working/"
alias ls="ls -aF --color"
#
export THERDOM=~/td/dist/Programs/
export PATH=$PATH:$THERDOM
echo ~.bash_profile read
echo pwd: $PWD
#
This is so that THERIAK-DOMINO knows where to find the underlying subroutines
Save and close file by CTRL+S followed by CTRL+X
- Make a convenience copy
cp linux_bashr_addition .bashrc- Done. To start THERIAK-DOMINO just source that bash file and run a subroutine, e.g.
domino:
source .bashrc # needs to be only executed once per session
dominoRun UNIX on Windows
open a Windows terminal and run:
wsl --installThis install Ubuntu by default. If a different distribution is desired, run wsl --list --online to see a list of available distros and run wsl --install -d <DistroName>
Ways to use WSL
Using the terminal directly
To start wsl, open the terminal and run
wsl.exeUsing VS Code
Install the WSL Extension
Open VS Code on Windows.
Click on the Extensions icon on the left sidebar (or press
Ctrl+Shift+X).Search for and install the official WSL Extension by Microsoft.
Open a terminal and run
wsl.exe
code