Rate This Document
Findability
Accuracy
Completeness
Readability

Compilation and Installation

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Install the base dependencies.
    yum -y install cairo*
    yum -y install pango-devel pangomm pango-tests pangomm-devel pangomm-doc
  3. Decompress the installation package and go to the installation directory.
    tar -zxvf PyFerret-7.6.0.tar.gz
    cd PyFerret-7.6.0
  4. Copy the configuration file.
    cp site_specific.mk.in site_specific.mk
  5. Modify the site_specific.mk configuration file.
    1. Open the site_specific.mk file.
      vi site_specific.mk
    2. Press i to enter the edit mode and add a new line above line 10:
      HOME=/path/to/PyFerret

      Before the modification:

      DIR_PREFIX = $(HOME)/git/PyFerret
      INSTALL_FER_DIR = $(HOME)/PyFerret
      BUILDTYPE = x86_64-linux
      PYTHON_EXE = python3.6
      HDF5_LIBDIR = /usr/local/hdf5/lib
      NETCDF_LIBDIR = /usr/local/netcdf/lib

      After the modification:

      HOME=/path/to/PyFerret
      DIR_PREFIX = $(HOME)/PyFerret-7.6.0
      INSTALL_FER_DIR = $(HOME)/pyferret
      BUILDTYPE = aarch64-linux
      PYTHON_EXE = python3.8
      HDF5_LIBDIR = /path/to/HDF5/lib
      NETCDF_LIBDIR = /path/to/NETCDF/lib

      After performing 5.a, press Esc, type :set nu, and press Enter to display the line number.

    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  6. Copy the configuration file.
    cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
  7. Modify platform_specific.mk.aarch64-linux.
    sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
  8. Go to the ef_utility directory.
    cd external_functions/ef_utility/
  9. Copy the configuration file.
    cp site_specific.mk.in site_specific.mk
  10. Modify the configuration file.
    1. Open the configuration file.
      vi site_specific.mk
    2. Press i to enter the edit mode and modify the following information in bold:
      BUILDTYPE = aarch64-linux
      PYTHON_EXE = python3.8
    3. Press Esc, type :wq!, and press Enter to save the file and exit.
  11. Copy the configuration file.
    cp platform_specific.mk.x86_64-linux platform_specific.mk.aarch64-linux
  12. Modify the platform_specific.mk.aarch64-linux configuration file.
    sed -i "s/-m64//g" platform_specific.mk.aarch64-linux
  13. Return to the original directory.
    cd -
  14. Perform the installation.
    make

    make install