Ubuntu
In this section you will perform a quick installation of easifem library and run some sample programs.
Following steps are performed in this section.
- Installing
easifemcommand line interface. - Set up the environment variables by using
easifemCLI. - Install easifem library.
summary
It is recommended that you read and follow the steps given below to quickly install easifem. However, due to any reason, if you do not want to read the instruction given below, then just copy and paste the command given below.
sudo apt-get update && \
sudo apt-get install -y gfortran gcc libomp-dev curl git \
python3 python3-pip cmake ninja-build \
liblapack-dev libopenblas-dev libhdf5-dev \
libplplot-dev plplot-driver-cairo libboost-all-dev \
gnuplot doxygen libgtk-4-dev lua5.4 liblua5.4-dev \ &&
python3 -m pip install easifem && \
easifem setenv -i ~/.easifem/install -b ~/.easifem/build -s ~/.easifem/src && \
source ~/.config/easifem/easifemvar.sh && \
easifem install easifem
Build from source
Step 1: install system dependencies
sudo apt-get update && \
sudo apt-get install -y gfortran gcc libomp-dev curl git \
python3 python3-pip cmake ninja-build \
liblapack-dev libopenblas-dev libhdf5-dev \
libplplot-dev plplot-driver-cairo libboost-all-dev lua5.4 liblua5.4-dev \
gnuplot doxygen libgtk-4-dev
Step 2: Install easifem CLI
python3 -m pip install easifem
Step 3: Setting up environment variables
easifem setenv -i ~/.easifem/install -b ~/.easifem/build -s ~/.easifem/src
If your active shell is zsh or bash, then please run the following command.
for bash or zsh shell only
# add to ~/.bashrc or ~/.zshrc
source ~/.config/easifem/easifemvar.sh
If your active shell is fish, then run the following command.
for fish shell
# add to ~/.config/fish/config.fish
source ~/.config/easifem/easifemvar.fish
Check your shell
Now, you need to modify the shell file by adding following lines.
Click here to to know more about the environment variables
Click here to see how to modify the shell(recommended)
Step 4: Install easifem
easifem install easifem