Post · 2 min read· pp. 117–118

RHEL 8 / Rocky Linux 8 Build Instructions

These instructions are based on the rpm_instructions, modified specifically for Rocky Linux 8.9 as of January 2024. This is meant to serve as a set of notes and working instructions as support for RH8 is improved.

You will first download the necessary dependencies, then the OpenVSP source code, then build and install an RPM package for OpenVSP.

Build Instructions

I developed these instructions by installing OpenVSP on a clean installation of Rocky Linux 8.9. Some dependencies may be hidden in the following because they were installed by default.

  1. Install required packages the standard way:
text
sudo dnf install -y cmake libxml2-devel rpm-build swig graphviz texlive-scheme-basic python3-devel
sudo dnf config-manager --set-enabled powertools
sudo dnf install -y glm-devel doxygen conda glew-devel
  1. Install remaining required packages the hard way. You will need to navigate to each of these webpages, copy the “.rpm” link listed under “Download”→“Binary Package”, and then execute
text
sudo rpm -i <RPM_LINK>.rpm

Necessary package webpages:

  1. Make main directory and clone OpenVSP source:
text
mkdir OpenVSP
cd OpenVSP
git clone https://github.com/OpenVSP/OpenVSP.git
  1. Prepare build files for the libraries:
text
mkdir buildlibs
cd buildlibs
cmake -DCMAKE_BUILD_TYPE=Release -DVSP_USE_SYSTEM_LIBXML2=true \
  -DVSP_USE_SYSTEM_FLTK=true -DVSP_USE_SYSTEM_GLM=true \
  -DVSP_USE_SYSTEM_GLEW=true -DVSP_USE_SYSTEM_CMINPACK=true \
  -DVSP_USE_SYSTEM_CPPTEST=false ../Libraries
make -j4
  1. Build the package file:
text
cd ..
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DVSP_CPACK_GEN=RPM -DVSP_LIBRARY_PATH=`pwd`/../buildlibs ../src
make -j4 package
ls -l *.rpm

The last command should output a single RPM file.

  1. Install OpenVSP:
text
sudo rpm -i <OPENVSP_RPM_PACKAGE>.rpm

The RPM installs everything into /opt/OpenVSP.

The Python module is installed into /opt/OpenVSP/python, and you need to follow the steps in the README.md file in that directory in order to make use of it. The Python integration has not been tested on Rocky Linux.