RSTT is distributed in various precompiled forms (see Downloads), but if you want or need to compile it from source, yourself, the Makefiles have been designed so that you need only compile the minimum amount of code necessary to use RSTT with your language of choice. RSTT is developed in C++, but it also has interfaces in C, Fortran, and Java.
$ python3 -m pip install -user pybind11 sphinx sphinx-autodoc-typehints Build instructions If you are having trouble with installing things with pip due to disk/folder permissions, try adding -user to the pip flags in order to install modules to a local directory. $ python3 -m pip install pybind11 sphinx sphinx-autodoc-typehints NOTE: On any distro, you can install pybind11, Sphinx, and related modules directly through pip. The easiest way to satisfy these dependencies on Linux is, depending on your distro and package manager, by running one of these sets of commands in a termal window: # C++, C $ sudo apt install build-essentials # Fortran $ sudo apt install gfortran # Java $ sudo apt install default-jdk # Python $ sudo apt install python3-pip python3-devel python3-pybind11 # documentation $ sudo apt insta ll doxygen python3-sphinx python3-sphinx-autodoc-typehints # C++, C $ sudo dnf install kernel-devel gcc gcc-c++ # Fortran $ sudo dnf install gcc-gfortran # Java $ sudo dnf install java-devel # Python $ sudo dnf install python3-devel $ python3 -m pip install pybind11 # documentation $ sudo dnf install config-manager -set-enabled powertools $ sudo dnf install doxygen python3-sphinx $ python3 -m pip install sphinx-autodoc-typehints # C++, C $ sudo yum install kernel-devel gcc gcc-c++ # Fortran $ sudo yum install gcc-gfortran # Java $ sudo yum install java-devel # Python $ sudo yum install python3-devel $ python3 -m pip install pybind11 # documentation $ sudo yum install config-manager -set-enabled PowerTools $ sudo yum install doxygen python3-sphinx $ python3 -m pip install sphinx-autodoc-typehints NOTE: You can also install pybind11, Sphinx, and related modules directly through pip. $ python3 -m pip install sphinx-autodoc-typehints $ brew install gcc gfortran openjdk doxygen python3 pybind11 sphinx-doc Following that, you can install the necessary dependencies by running these commands in a terminal window:
The easiest way to satisfy these dependencies on a Mac is to install the Homebrew package manager. Softwareīuild GeoTess and core RSTT libraries and testsīuild documentation for C++, C, and Fortran code The version numbers listed are not necessarily required to compile without error they are simply those that were used and tested in development.
Dependencies MacOSīelow is a list of packages and software required to build RSTT from source.
If that fails, they will fall back to searching the path provided in the above variables, in order. In both the Java and Python interfaces, RSTT will first attempt to load the appropriate libraries through the system paths. When writing your own codes that utilize the RSTT libraries, you may find it useful to set one of the following environmental variables to the root directory of RSTT: If you are having difficulty with strange errors related to paths during compilation, try and temporarily remove any remnants of past RSTT versions in environment variables such as $PATH, $LD_LIBRARY_PATH, $DYLD_LIBRARY_PATH, and $SLBM_ROOT or $SLBM_HOME.
During the compilation process, the Makefiles will point to the correct library paths within the default directory structure. In RSTT v3.2.0, no paths should need to be specified in any environment variables to compile and run.