-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall_instructions_Ubuntu.txt
54 lines (34 loc) · 1.65 KB
/
install_instructions_Ubuntu.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# ==================================================== #
# Thorsten Zirwes (07/20/2023) #
# ==================================================== #
Install instructions for Ubuntu 2204:
install pre-requisite packages:
>sudo apt install build-essential
>sudo apt install python3-dev
>sudo apt-get install python3-pip
>sudo apt-get install -y cmake scons libboost-all-dev
>cd /usr/bin && sudo rm -f python && sudo ln -s python3 python
>pip3 install ipython matplotlib numpy ruamel.yaml cython pytest
>pip install --upgrade --user setuptools==58.3.0
add this line to your ~/.bashrc
export PATH="$HOME/.local/bin:$PATH"
then re-load the bashrc:
>source ~/.bashrc
set some temporary environment variables for the installation
>export compilerg=`which gcc`
>export compilergpp=`which g++`
>export pythonver=`which python3`
Prepare directory for installation:
>mkdir -p ~/Programs/Cantera && cd ~/Programs/Cantera
>mkdir -p Cantera_PMB_git && cd Cantera_PMB_git
>git clone --recursive https://github.com/IhmeGroup/PMCToolbox
>cd PMCToolbox
>scons build -j 8 prefix=$HOME/Programs/Cantera/Cantera_PMB_install python_cmd=$pythonver CC=$compilerg CXX=$compilergpp debug=no optimize=yes python_package=full system_sundials=n
If there are problems with missing python modules, set python_package=minimal
>scons install
in your ~/.bashrc, add the following line:
export PATH="$HOME/Programs/Cantera/Cantera_PMB_install/local/bin/:$PATH"
then, source the bashrc again:
>source ~/.bashrc
To run the example cases, go into the folder "PMB_example_cases" and the respective directories therein. Compile and run the examples by running the script
>./compile_example.sh