Excerpt |
---|
When the installation of software is not supported by the Spack software manager you will have to go through every step of the associated build process yourself. |
This page provides guidance on how to build software to generate an executable from its source code when the build process is supported by the tools tools such as Make, CMake or configure
script.
...
- Environment configuration. The software you want to build and the build process itself almost always depend on libraries, tools and supporting files being present on the system. You must ensure that all required dependencies are available and discoverable through appropriate mechanisms such as environment variables.
- Compiling. This is the process of transforming the source code of the software into machine code, which is stored in object files. This task is performed by compilers such as
gcc
. - Linking. Library dependencies and the object files produced by the previous steps are linked together to form an executable.
- Installation. Executables and other necessary artifactsartefacts, like shared or static libraries, are moved to the desired installation location on the
/software
filesystem, where they can be found for later use.
...