I was installing ANSYS 2023 R2 on Rocky Linux 8 and I encoutnered the error
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
For full Requirements for installing VASP-6.4.2, do take a look at Installing VASP.6.X.X
Requirements Needs
Compilers for Fortran (at least F2008 compliant), C, and C++. For instance, one of the following compiler suites. In my case, I used Intel-2023.1 (Intel OneAPI Base Toolkit + Intel OneAPI-HPC-Kit)
Numerical Libraries, FFTW, BLAS, LAPACK, and ScaLAPACK. I used Intel OneAPI MKL
An implementation of the Message Passing Interface (MPI). I used Intel-OneAPI-MPI
Step 1: Prepare the makefile.include
Select the appropriate makefile.include from arch folder that you resemble your environment. In my case
To install, download the files in vtsttools/vtstcode, choose a version, and copy the files in the directory into your vasp source directory. The file chain.F is replaced, so back up the old version. There are other files in the package: neb.F, dynmat.F, dimer.F, lanczos.F, sd.F, cg.F, qm.F, lbfgs.F, bfgs.F, fire.F, and opt.F in and vtstcode6.4/ directories. The vtstcode6.4/ directory contains another file called ml_pyamff.F and directory named pyamff_fortran/, which interface to a machine learning package PyAMFF.
In my situation, I put it in /usr/local/vasp-6.4.2-vtst/vasp.6.4.2/src
$ cd /usr/local/vasp-6.4.2-vtst/vasp.6.4.2/src
$ tar -zxvf vtstcode-198.tgz
$ cd vtstcode-198/vtstcode6.4
$ cp -Rv * /usr/local/vasp-6.4.2-vtst/vasp.6.4.2/src
Step 3: Find the variable SOURCE in the .objects file (a hidden file in src/)
Find the variable SOURCE in the .objects file (a hidden file in src/), which defines which objects will be built, and add the following objects before chain.o:
$ cd /usr/local/vasp-6.4.2-vtst/vasp.6.4.2/src
$ ls -al .objects
$ vim .objects
Around line 126, before chain.o, insert the following
You will need the latest GNU GCC-10 or the latest for a successful compile. I compiled with GCC-12.3. You may want to take a look at Compiling GCC 12.1.0 on Rocky Linux 8.5
If you are using OneAPI Intel MKL, you can use module use after compilation. It will not be covered in this write-up. But you can:
% module use /usr/local/intel/2023.1/modulefiles
Finally,
% module load mkl/latest
% module load gnu/gcc-12.3
% module load hpcx
% make veryclean
% make DEPS=1 -j
If you are doing a dnf install on hdf5 packages, you will notice errors like the one below
nothing provides libsz.so.2()(64bit) needed by hdf5-1.10.5-4.el8.x86_64
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
To resolve the issue, you will need to install and enable PowerTools
Step 1: Install DNF plugins package
dnf install dnf-plugins-core
Step 2: Install EPEL
The reason is that some software from its source code requires some dependencies that are available in EPEL
dnf install epel-release
Step 3: Enable PowerTools repository on Rocky Linux 8