Installing ParMETIS
Procedure
- Use PuTTY to log in to the server as the root user.
- Decompress the ParMETIS installation package.
tar -xvf parmetis-4.0.3.tar.gz
- Go to the directory generated after the decompression.
cd parmetis-4.0.3
- Modify the metis/include/metis.h file.
- Install CMake.
yum install cmake -y
If an error is reported during the installation, modify the Yum configuration file to change the Python version.
- Go to the metis directory and compile and install ParMETIS.
cd metis/ make config shared=1 prefix=/path/to/METIS make install
- Go to the upper-layer directory and perform the compilation and installation.
cd ../
Add the following information in bold to the CMakeLists.txt file in the current directory:
# List of paths that the compiler will search for header files. add_compile_options(-fPIC)
Save the file and exit.
make config shared=1 prefix=/path/to/METIS make install
Parent topic: Configuring the Compilation Environment