Compiling and Installing COPASI
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to install the dependencies:
yum install qt.aarch64 qt-devel.aarch64 -y
- Run the following commands to set environment variables:
export PATH=/path/to/cmake/bin:$PATH export CC=`which gcc` export CXX=`which g++` export FC=`which gfortran` export PATH=/path/to/GNU/bin:$PATH export LD_LIBRARY_PATH=/path/to/GNU/lib64:$LD_LIBRARY_PATH export PATH=/path/to/OPENMPI/bin:$PATH export LD_LIBRARY_PATH=/path/to/OPENMPI/lib:$LD_LIBRARY_PATH
- Run the following commands to decompress the official dependency package:
cd /path/to/COPASI tar -xvf copasi-dependencies-4.26.213.tar.gz
- Run the following commands to compile and install the dependencies:
cd copasi-dependencies-4.26.213 ./createLinux.sh
- Run the following command to copy the files in the lib64 directory to the lib directory:
cp -r ./bin/lib64/* ./bin/lib
- Run the following command to decompress the COPASI installation package:
cd /path/to/COPASI tar -xvf COPASI-Build-217.tar.gz
- Run the following commands to compile and install COPASI:
cd COPASI-Build-217/ mkdir build cd build cmake -DBUILD_GUI=OFF -DCMAKE_INSTALL_PREFIX=/path/to/COPASI/COPASI-Build-217/build -DCOPASI_DEPENDENCY_DIR=/path/to/COPASI/copasi-dependencies-4.26.213/bin ../ make install
- Run the following command to add the environment variable:
export PATH=/path/to/COPASI/COPASI-Build-217/build/bin:$PATH
Parent topic: COPASI 4.27.217 Porting Guide (CentOS 7.6)