Openmc Instalation Guide

Download as odt, pdf, or txt
Download as odt, pdf, or txt
You are on page 1of 3

Recruits

1. Install GIT

Start by updating the system package index. Launch a terminal


window (Ctrl+Alt+T) and run the following command:
sudo apt update

Updating the package index ensures you’re working with the latest software versions.

2. Install Git from the default Ubuntu repository by running:


sudo apt install git

Allow the process to complete.


Verify the installation and version by running:
git --version

Help : https://phoenixnap.com/kb/how-to-install-git-on-ubuntu

2. Install GCC

sudo apt update


sudo apt install build-essentia

The command installs a lot of packages, including gcc, g++ and make.

Verify that the GCC compiler is successfully installed by running the following command that
prints the GCC version
gcc --version

Help
https://linuxize.com/post/how-to-install-gcc-on-ubuntu-20-04/

3.0 Install Cmake


Help
https://vitux.com/how-to-install-cmake-on-ubuntu/

install build tools and libraries that CMake depends on:


$ sudo apt-get install build-essential libssl-dev

Go to the temp directory:


$ cd /tmp

Then, enter the following command to download the source code:


$ wget https://github.com/Kitware/CMake/releases/download/v3.20.0/cmake-
3.20.0.tar.gz

Once the tar.gz file is downloaded, enter the following command to extract it:
$ tar -zxvf cmake-3.20.0.tar.gz

Then move to the extracted folder as follows:


$ cd cmake-3.20.0

Finally, run the following commands to compile and install CMake:


./bootstrap

The bootstrap process may take some time, do not interrupt it. When CMake has bootstrapped, you
will get the following output:

You can now make it using the following command:


$ make

And then install it as follows:


$ sudo make install

After the software is successfully installed, you can verify its installation and also if the correct
version is installed, through the following command:
$ cmake --version

CMake 3.20.0 has been installed successfully on Ubuntu. You can now use the CLI tool to work
with your software’s code.

4.0 install HDF5 tools

Update apt database with apt-get using the following command.


sudo apt-get update

After updating apt database, We can install hdf5-tools using apt-get by running the
following command:
sudo apt-get -y install hdf5-tools

Install hdf5-tools Using apt


Update apt database with apt using the following command.
sudo apt update

After updating apt database, We can install hdf5-tools using apt by running the following
command:
sudo apt -y install hdf5-tools

help : https://installati.one/install-hdf5-tools-ubuntu-20-04/

5.0 install Python :

https://www.digitalocean.com/community/tutorials/how-to-install-python-3-and-set-up-a-
programming-environment-on-an-ubuntu-20-04-server

---------------------------------------------------------------------

then Install OPEN MC

sudo apt install gfortran g++ cmake libhdf5-dev gcc make

You might also like