As latest RHEL 10 is supposed to be Wayland only with no X11 desktop, I wondered if CPSeis could be built in latest Centos. Alma and Rocky Linux don't seem to have a version 10 yet. Anyway, it will take some extra work, if you really want to continue with Centos. This is what I did:
dnf install gcc-gfortran
dnf install java-devel
dnf install subversion
dnf install xorg-X11*
dnf install xterm
dnf config-manager --set-enabled crb
dnf install
https://dl.fedoraproject.org/pub/epel/epel-release-latest-10.noarch.rpmdnf install xorg-x11-server-Xwayland-devel
dnf install tcsh
dnf group -y install "KDE Plasma Workspaces"
dnf install libXt-devel
dnf install libXext-devel
As Motif seems to be missing from Centos 10, need to download RPMs for Fedora 40 for the following:
setxkbmp, xmodmap, xorg-x11-xinit, xorg-xbitmaps, libXp, motif, libXp-devel, motif-devel
install the RPMs with dnf install in that order, motif-devel last of all
reboot
go to /usr/lib64
create symbolic links for
libXmu.so libXt.so libXext.so libSM.so libICE.so libX11.so libXm.so
to existing libraries with full version numbers after .so