Hi Zhikang,
Just to follow up on my earlier message, I can confirm that a basic build of the v5.1.0 Nektar++ release can be successfully made from source on Ubuntu 22.04.
I undertook a standard build with MPI support enabled and this completed successfully. I note that there seems to be an issue building with HDF5 support on 22.04, we’ll investigate this.
In case this helps, here are the steps that I carried out to build on Ubuntu 22.04:
1) Ensure dependencies are installed - I was working in a basic 22.04 Docker container which had very few dependencies installed by default. I had to install the following packages:
build-essential cmake cmake-curses-gui git libboost-filesystem-dev libboost-iostreams-dev libboost-program-options-dev libboost-regex-dev libboost-system-dev libboost-thread-dev liblapack-dev libscotch-dev libtinyxml-dev zlib1g-dev mpi-default-dev libptscotch-dev flex bison
If you’re working on a regular desktop or server install of 22.04, you probably have several of these packages installed already.
2) Get the Nektar++ source code and checkout the tag for the v5.1.0 release (you could also try building the master branch):
cd nektar++
git checkout v5.1.0
3) Make a build directory in which to undertake the build
mkdir build
cd build
4) Run cmake to configure a standard build with MPI support enabled (note the “..” at the end of the command):
cmake -DCMAKE_BUILD_TYPE=Release -DNEKTAR_USE_MPI:BOOL=ON ..
5) Run the build and install
make -j 4 (change 4 to the number of cores on your system, a higher number will result in a shorter build time)
…assuming the build completes without errors you can now install:
make install
You should now have a complete build of Nektar++ on Ubuntu 22.04. The binaries will be in the nektar++/build/dist/ directory.
If you want to install to another location on your system, you can add "-DCMAKE_INSTALL_PREFIX=<install location>” to the cmake command in step 4 above, replacing <install location> with the full path to the location where you want to install Nektar++.
Hope this helps you to get things going on Ubuntu 22.04.
Kind regards,
Jeremy
Hi Zhikang,
Yes, Nektar++ should support Ubuntu 22.04. If you’re trying to build Nektar++ from source code you should be able to follow the standard approach, as described in the manual, for
building from source for Linux. It’s possible that some updated packages provided with Ubuntu 22.04 may cause build issues but we will resolve any such issues. If you try to build from source and encounter any problems, please do let us know.
Kind regards,